Skip to content
OpenAdvisories
High · 7.3 CVE-2017-5662 EUVD-2022-5045GHSA-qwgx-59jw-qfg9

Improper Restriction of XML External Entity Reference in Apache Batik

Published Apr 18, 2017 · Updated Aug 5, 2024 · Assigned by apache

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Batik before 1.9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 batik 1.9-1 —
Debian 13 batik 1.9-1 —
Debian 12 batik 1.9-1 —
Debian 9 batik 1.8-4+deb9u1 DSA-4215-1
Debian 8 batik 1.7+dfsg-5+deb8u1 DSA-4215-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 7 batik 1.7+dfsg-3+deb7u2 DLA-926-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS batik 1.7.ubuntu-8ubuntu2.14.04.2 USN-3280-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS batik No fix yet —
ReleasePackageFixed inAdvisory
SLES 12 SP5 xmlgraphics-batik 1.17-2.7.1 SUSE-SU-2024:0777-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.xmlgraphics:batik < 1.9 1.9 GHSA-qwgx-59jw-qfg9

Advisories 6

References