Improper Restriction of XML External Entity Reference in Apache Batik
Date: 2022-05
Affected: maven/org.apache.xmlgraphics:batik
Attack vector: dos
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2017-5662
CWE: CWE-611
CVSS: 7.3 (CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H)

In Apache Batik before 1.9, files lying on the filesystem of the server which uses batik can be revealed to arbitrary users who send maliciously formed SVG files. The file types that can be shown depend on the user context in which the exploitable application is running. If the user is root a full compromise of the server - including confidential or sensitive files - would be possible. XXE can also be used to attack the availability of the server via denial of service as the references within a xml document can trivially trigger an amplification attack.


Mitigations:

Architectural layers (MAESTRO):