CVE-2018-8013
batik: information disclosure when deserializing
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium), Ubuntu (medium).
Description
In Apache Batik 1.x before 1.10, when deserializing subclass of `AbstractDocument`, the class takes a string from the inputStream as the class name which then use it to call the no-arg constructor of the class. Fix was to check the class type before calling newInstance in deserialization.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.apache.xmlgraphics:batik | 1.10 |
| debian 11 | batik | 1.10-1 |
| debian 12 | batik | 1.10-1 |
| debian 13 | batik | 1.10-1 |
| debian 14 | batik | 1.10-1 |
| debian 7 | batik | 1.7+dfsg-3+deb7u3 |
| debian 8 | batik | 1.7+dfsg-5+deb8u1 |
| debian 9 | batik | 1.8-4+deb9u1 |
| echo | batik | 1.10-1 |
| Red Hat | batik, batik-demo, batik-javadoc and 13 more | no fix listed |
| ubuntu 14.04 | batik | 1.7.ubuntu-8ubuntu2.14.04.3 |
Show all 26 entries from 11 sources
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.apache.xmlgraphics:batik | 1.10 |
| debian 11 | batik | 1.10-1 |
| debian 12 | batik | 1.10-1 |
| debian 13 | batik | 1.10-1 |
| debian 14 | batik | 1.10-1 |
| debian 7 | batik | 1.7+dfsg-3+deb7u3 |
| debian 8 | batik | 1.7+dfsg-5+deb8u1 |
| debian 9 | batik | 1.8-4+deb9u1 |
| echo | batik | 1.10-1 |
| Red Hat | batik | no fix listed |
| Red Hat | batik-demo | no fix listed |
| Red Hat | batik-javadoc | no fix listed |
| Red Hat | batik-rasterizer | no fix listed |
| Red Hat | batik-slideshow | no fix listed |
| Red Hat | batik-squiggle | no fix listed |
| Red Hat | batik-svgpp | no fix listed |
| Red Hat | batik-ttf2svg | no fix listed |
| Red Hat | rh-java-common-batik | no fix listed |
| Red Hat | rh-java-common-batik-demo | no fix listed |
| Red Hat | rh-java-common-batik-javadoc | no fix listed |
| Red Hat | rh-java-common-batik-rasterizer | no fix listed |
| Red Hat | rh-java-common-batik-slideshow | no fix listed |
| Red Hat | rh-java-common-batik-squiggle | no fix listed |
| Red Hat | rh-java-common-batik-svgpp | no fix listed |
| Red Hat | rh-java-common-batik-ttf2svg | no fix listed |
| ubuntu 14.04 | batik | 1.7.ubuntu-8ubuntu2.14.04.3 |
References
- http://seclists.org/oss-sec/2018/q2/135
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
- http://www.securityfocus.com/bid/104252
- http://www.securitytracker.com/id/1040995
- https://access.redhat.com/security/cve/CVE-2018-8013
- https://github.com/apache/xmlgraphics-batik/commit/f91125b26a6ca2b7a1195f1842360bed03629839
- https://issues.apache.org/jira/browse/BATIK-1222
All 26 references
- https://lists.apache.org/thread.html/r9e90b4d1cf6ea87a79bb506541140dfbf4801f4463a7cee08126ee44@%3Ccommits.xmlgraphics.apache.org%3E
- https://lists.apache.org/thread.html/rc0a31867796043fbe59113fb654fe8b13309fe04f8935acb8d0fab19@%3Ccommits.xmlgraphics.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2018/05/msg00016.html
- https://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-dev/201805.mbox/%3C000701d3f28f$d01860a0$704921e0$@gmail.com%3E
- https://nvd.nist.gov/vuln/detail/CVE-2018-8013
- https://security.gentoo.org/glsa/202401-11
- https://ubuntu.com/security/CVE-2018-8013
- https://ubuntu.com/security/notices/USN-3661-1
- https://usn.ubuntu.com/3661-1
- https://usn.ubuntu.com/3661-1/
- https://www.cve.org/CVERecord?id=CVE-2018-8013
- https://www.debian.org/security/2018/dsa-4215
- https://www.oracle.com/security-alerts/cpujul2020.html
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
- https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
- https://xmlgraphics.apache.org/security.html