Improper Restriction of XML External Entity Reference in Apache Batik
Published 13 May 2022 · Updated 8 Nov 2023
Is your project on an affected org.apache.xmlgraphics:batik?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.9
- Fixed in
- 1.9
mvn versions:use-dep-version -Dincludes=org.apache.xmlgraphics:batik -DdepVersion=1.9 -DforceVersion=trueDetails
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.
Is GHSA-qwgx-59jw-qfg9 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.xmlgraphics:batik, and gives you the command that fixes it.
More advisories for org.apache.xmlgraphics:batik
- HighCVE-2022-41704Apache XML Graphics Batik vulnerable to code execution via SVG. · 25 Oct 2022
- HighCVE-2022-42890Untrusted code execution in Apache XML Graphics Batik · 25 Oct 2022
- HighCVE-2022-40146Apache Batik vulnerable to Server-Side Request Forgery · 23 Sept 2022
- MediumCVE-2022-38648Apache Batik vulnerable to Server-Side Request Forgery · 23 Sept 2022
- MediumCVE-2022-38398Apache Batik Server-Side Request Forgery · 23 Sept 2022
- MediumCVE-2015-0250Improper Input Validation in Apache Batik · 17 May 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2017-5662
- Linkaccess.redhat.com/errata/RHSA-2017:2546
- Linkaccess.redhat.com/errata/RHSA-2017:2547
- Linkaccess.redhat.com/errata/RHSA-2018:0319
- Linkwww.debian.org/security/2018/dsa-4215
- Linkwww.oracle.com/security-alerts/cpuoct2020.html
- Linkxmlgraphics.apache.org/security.html
- Linkwww.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- Linkwww.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- Linkwww.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
- Linkwww.securityfocus.com/bid/97948
- Linkwww.securitytracker.com/id/1038334
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.