CVE-2020-13692: Improper Restriction of XML External Entity Reference
7.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.84583%
CWE
Published
2/10/2022
Updated
5/15/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.postgresql:postgresql | maven | >= 9.4.1212.jre6, < 42.2.13 | 42.2.13 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insecure XML factory instantiation in PgSQLXML
methods. Pre-patch code used DocumentBuilderFactory.newInstance()
, XMLInputFactory.newInstance()
, and TransformerFactory.newInstance()
without disabling DTD/external entities. The fix (commit 14b62ac) introduced PGXmlFactoryFactory
to enforce secure configurations, confirming these functions were vulnerable. The affected methods directly handled XML parsing/transformation without proper XXE safeguards in versions <42.2.13.