CVE-2017-5662
Improper Restriction of XML External Entity Reference in Apache Batik
Reported by apache · Published April 18, 2017
batik is fixed in 1.9 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.xmlgraphics:batik | Maven Central | 1.9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Batik | before 1.9 |
| Apache Software Foundation | Apache Batik | 1.9 |
| Maven | org.apache.xmlgraphics:batik | 0 |
| Maven | org.apache.xmlgraphics:batik-dom | 0 |
| Maven | org.apache.xmlgraphics:batik-rasterizer | 0 |
Timeline
- Apr 18, 2017 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Apr 20, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (5 in total, the first dated here)
- Mar 6, 2026 Security Advisory (6 in total, the first dated here)
- Sep 28, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-5662
vulnetix vdb fixes CVE-2017-5662
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-5662/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2017:2547 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:0319 vendor-advisoryx_refsource_REDHAT
- 1038334 vdb-entryx_refsource_SECTRACK
- DSA-4215 vendor-advisoryx_refsource_DEBIAN
- RHSA-2017:2546 vendor-advisoryx_refsource_REDHAT
- 97948 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_MISC
- https://access.redhat.com/security/cve/cve-2017-5662 url
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5662 advisory
- https://vuldb.com/?id.99937 url
- https://nvd.nist.gov/vuln/detail/CVE-2017-5662 advisory
- https://github.com/advisories/GHSA-qwgx-59jw-qfg9 advisory