Skip to content
Fencer Intel
high 7.3

CVE-2017-5662 json

Improper Restriction of XML External Entity Reference in Apache Batik

published 2017-04-18 9 y ago modified 2026-06-17 4 mo ago also GHSA-qwgx-59jw-qfg9 , EUVD-2022-5045

cvss
7.3
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
4.1%
EPSS 4.1% chance of exploitation in 30 days, percentile 90%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.apache.xmlgraphics:batik 1.9
  • batik Debian 14, Debian 13, Debian 12 1.9-1

debian advisories DEBIAN-CVE-2017-5662

  • batik Ubuntu 14.04 LTS 1.7.ubuntu-8ubuntu2.14.04.2

ubuntu advisories UBUNTU-CVE-2017-5662

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • xmlgraphics-batik SLE Software Development Kit 12 SP5 1.17-2.7.1

suse advisories SUSE-SU-2024:0777-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-5662 updated cvss 7.5

batik: XML external entity processing vulnerability

  • Red Hat Enterprise Linux 6 batik, batik-demo, batik-svgpp, batik-javadoc, batik-ttf2svg, batik-squiggle, +2 more Red Hat Enterprise Linux 7 batik, batik-demo, batik-svgpp, batik-javadoc, batik-ttf2svg, batik-squiggle, +2 more Red Hat JBoss Fuse Service Works 6 batik Red Hat Software Collections rh-java-common-batik, rh-java-common-batik-demo, rh-java-common-batik-svgpp, rh-java-common-batik-javadoc, rh-java-common-batik-ttf2svg, rh-java-common-batik-squiggle, +2 more
    affected: no fix planned “Will not fix”
  • Red Hat Virtualization 4 batik, batik-demo, batik-svgpp, batik-javadoc, batik-ttf2svg, batik-squiggle, +2 more
    affected: no fix available
  • Red Hat JBoss A-MQ 6.3
    fixed: vendor fix RHSA-2018:0319
  • Red Hat JBoss BPMS 6.4
    fixed: vendor fix RHSA-2017:2546
  • Red Hat JBoss BRMS 6.4
    fixed: vendor fix RHSA-2017:2547
  • Red Hat JBoss Fuse 6.3
    fixed: vendor fix RHSA-2018:0319

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

4.12% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 7.3 CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H
NVD 2.0 7.9 AV:N/AC:M/Au:S/C:C/I:N/A:C
GitHub 3.0 7.3 CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H

Affected packages

ecosystem package affected fixed in
maven org.apache.xmlgraphics:batik
<1.9
1.9

Affected products

  • Apache Software Foundation Apache Batik

Classification

Weakness
  • CWE-611 Improper Restriction of XML External Entity Reference

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.