Skip to content

Improper Restriction of XML External Entity Reference in Apache Batik

High severity GitHub Reviewed Published May 13, 2022 to the GitHub Advisory Database • Updated Jan 27, 2023

Package

maven org.apache.xmlgraphics:batik (Maven)

Affected versions

< 1.9

Patched versions

1.9

Description

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.

References

Published by the National Vulnerability Database Apr 18, 2017
Published to the GitHub Advisory Database May 13, 2022
Reviewed Jul 1, 2022
Last updated Jan 27, 2023

Severity

High
7.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H

Weaknesses

CVE ID

CVE-2017-5662

GHSA ID

GHSA-qwgx-59jw-qfg9

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.