Every CVE Search/ Get API key

CVE-2017-5662

Improper Restriction of XML External Entity Reference in Apache Batik

7.3 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
High

Exploit likelihood

4.12%Down 4.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.3

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.

Record
CVE-2017-5662
CVSS 3.0
7.3 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H
CVSS 2.0
7.9 HighAV:N/AC:M/Au:S/C:C/I:N/A:C
Weakness
CWE-611
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2017-5662
Updated
2026-11-02
EUVDEUVD-2022-5045 No score

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.

Record
EUVD-2022-5045
Updated
2026-11-03
GitHub AdvisoriesGHSA-qwgx-59jw-qfg9 7.3

Improper Restriction of XML External Entity Reference in Apache Batik

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.

Record
GHSA-qwgx-59jw-qfg9
CVSS 3.0
7.3 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H
Weakness
CWE-611
Updated
2026-11-02
OSV 7.3

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.

Record
CVE-2017-5662
CVSS 3.0
7.3 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2017-5662 7.3

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.

Record
DEBIAN-CVE-2017-5662
CVSS 3.0
7.3 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H
Updated
2026-11-02
Show 5 moreShow less
OSVGHSA-qwgx-59jw-qfg9 7.3

Improper Restriction of XML External Entity Reference in Apache Batik

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.

Record
GHSA-qwgx-59jw-qfg9
CVSS 3.0
7.3 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H
Weakness
CWE-611
Updated
2026-11-02
OSVUBUNTU-CVE-2017-5662 7.3

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.

Record
UBUNTU-CVE-2017-5662
CVSS 3.0
7.3 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H
Updated
2026-11-02
OSVCLSA-2026-1778633124 No score

TuxCare security update for org.apache.xmlgraphics (10 CVEs)

TuxCare rebuilt 27 org.apache.xmlgraphics packages to address 10 CVEs. Fixed in 1.7-tuxcare.1.

Record
CLSA-2026-1778633124
Updated
2026-11-02
OSVSUSE-SU-2024:0777-1 No score

Security update for xmlgraphics-batik

This update for xmlgraphics-batik fixes the following issues:

  • CVE-2017-5662: Fixed Apache Batik information disclosure vulnerability (bsc#1034675).
  • CVE-2019-17566: Fixed SSRF vulnerability (bsc#1172961).
  • CVE-2020-11987: Fixed Apache XML Graphics Batik SSRF vulnerability (bsc#1182748).
  • CVE-2022-38398: Fixed information disclosure vulnerability (bsc#1203674).
  • CVE-2022-38648: Fixed information disclosure vulnerability (bsc#1203673).
  • CVE-2022-40146: Fixed information disclosure vulnerability (bsc#1203672).
  • CVE-2022-41704: Fixed information disclosure vulnerability in Apache Batik (bsc#1204704).
  • CVE-2022-42890: Fixed information disclosure vulnerability in Apache Batik (bsc#1204709).
  • CVE-2022-44729: Fixed Server-Side Request Forgery.
  • CVE-2022-44730: Fixed Server-Side Request Forgery.

Upgrade to version 1.17.

Record
SUSE-SU-2024:0777-1
Updated
2026-11-02
OSVUSN-3280-1 No score

batik vulnerability

Lars Krapf and Pierre Ernst discovered that Apache Batik incorrectly handled XML external entities. A remote attacker could possibly use this issue to obtain sensitive files from the filesystem, or cause a denial of service.

Record
USN-3280-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.apache.xmlgraphics:batik
Maven
before 1.9
1.9
org.apache.xmlgraphics:batik-anim
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-awt-util
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-bridge
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-codec
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-css
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-dom
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-ext
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-extension
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-extensions
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
Show 27 moreShow less
Affected packages
PackageAffectedFixed
org.apache.xmlgraphics:batik-gui-util
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-gvt
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-js
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-parser
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-rasterizer
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-rasterizer-ext
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-script
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-slideshow
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-squiggle
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-squiggle-ext
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-svg-dom
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-svggen
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-svgpp
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-swing
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-transcoder
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-ttf2svg
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-util
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
org.apache.xmlgraphics:batik-xml
TuxCare:Maven
1.7 up to 1.7-tuxcare.1
1.7-tuxcare.1
batik
Debian:12
before 1.9-1
1.9-1
batik
Debian:13
before 1.9-1
1.9-1
batik
Debian:14
before 1.9-1
1.9-1
batik
Debian:7
before 1.7+dfsg-3+deb7u2, plus listed versions
1.7+dfsg-31.7+dfsg-3+deb7u1
1.7+dfsg-3+deb7u2
batik
Debian:8
before 1.7+dfsg-5+deb8u1, plus listed versions
1.7+dfsg-5
1.7+dfsg-5+deb8u1
batik
Debian:9
before 1.8-4+deb9u1, plus listed versions
1.8-4
1.8-4+deb9u1
xmlgraphics-batik
SUSE:Linux Enterprise Software Development Kit 12 SP5
before 1.17-2.7.1
1.17-2.7.1
batik
Ubuntu:14.04:LTS
before 1.7.ubuntu-8ubuntu2.14.04.2, plus listed versions
1.7.ubuntu-8ubuntu21.7.ubuntu-8ubuntu2.14.04.1
1.7.ubuntu-8ubuntu2.14.04.2
batik
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
1.7.ubuntu-8ubuntu31.8-31.8-3ubuntu11.8-3ubuntu1+esm1
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2017-5662 is a high vulnerability (CVSS 7.3) in Apache Batik, published April 18, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.12%, the 90th percentile. Fixed in org.apache.xmlgraphics:batik 1.9.

References

Show 31 moreShow less
MoveEnter Open