# CVE-2021-23792: XML External Entity (XXE) Injection

- Severity: High 7.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.07%, higher than 65% of CVEs (2026-12-01)
- Published: 2022-05-06T20:05:10.831Z
- Modified: 2026-09-10T03:49:24.007Z
- Also known as: GHSA-pjch-4g28-fxx7, SNYK-JAVA-COMTWELVEMONKEYSIMAGEIO-2316763
- Weaknesses: CWE-611
- Assigned by: snyk

## Description

The package com.twelvemonkeys.imageio:imageio-metadata before 3.7.1 are 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.

(As written by CVE List.)

## Affected

- com.twelvemonkeys.imageio:imageio-metadata: from unspecified before 3.7.1
- com.twelvemonkeys.imageio:imageio-metadata (Maven): before 3.7.1
- twelvemonkeys_project twelvemonkeys: before 3.7.1

## Every score

- snyk: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JAVA-COMTWELVEMONKEYSIMAGEIO-2316763> (patch, third-party-advisory, web)
- <https://github.com/haraldk/TwelveMonkeys/commit/da4efe98bf09e1cce91b7633cb251958a200fc80> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23792> (advisory)
- <https://github.com/haraldk/TwelveMonkeys> (package)

## Sources

- CVE List: [CVE-2021-23792](https://www.cve.org/CVERecord?id=CVE-2021-23792), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-pjch-4g28-fxx7](https://github.com/advisories/GHSA-pjch-4g28-fxx7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-23792](https://nvd.nist.gov/vuln/detail/CVE-2021-23792), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23792 · Whole record: https://cve.day/CVE-2021-23792.json · Rebuilt by cve.day 2026-11-25T22:58:07.460Z
