Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.twelvemonkeys.imageio/imageio-metadata
  4. ›
  5. CVE-2021-23792

CVE-2021-23792: Improper Restriction of XML External Entity Reference

May 6, 2022 (updated May 17, 2022)

The package com.twelvemonkeys.imageio:imageio-metadata before 3.7.1 is vulnerable to XML External Entity (XXE) Injection due to an insecurely initialized XML parser for reading XMP Metadata. An attacker can exploit this vulnerability if they are able to supply a file (e.g. when an online profile picture is processed) with a malicious XMP segment. If the XMP metadata of the uploaded image is parsed, then the XXE vulnerability is triggered.

References

  • github.com/haraldk/TwelveMonkeys/commit/da4efe98bf09e1cce91b7633cb251958a200fc80
  • nvd.nist.gov/vuln/detail/CVE-2021-23792
  • snyk.io/vuln/SNYK-JAVA-COMTWELVEMONKEYSIMAGEIO-2316763

Code Behaviors & Features

Detect and mitigate CVE-2021-23792 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.7.1

Fixed versions

  • 3.7.1

Solution

Upgrade to version 3.7.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

maven/com.twelvemonkeys.imageio/imageio-metadata/CVE-2021-23792.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:03 +0000.