CVE-2021-23792: External Entity Reference in TwelveMonkeys ImageIO
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.51299%
CWE
Published
5/7/2022
Updated
2/1/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
com.twelvemonkeys.imageio:imageio-metadata | maven | < 3.7.1 | 3.7.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insecure XML parser configuration in the XMPReader's read method. The pre-patch code directly used DocumentBuilderFactory.newInstance() without disabling DTDs/external entities. The fix introduced a createDocumentBuilderFactory method that explicitly disables XInclude, entity expansion, and external resource access. The test case added in XMPReaderTest.java with an XXE payload confirms the attack vector. The read method's parser initialization was the entry point for malicious XMP metadata processing.