CVE-2018-8013
Deserialization of Untrusted Data in Apache Batik
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2018-8013- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-502
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-8013- Updated
- 2026-11-02
EUVDEUVD-2022-1909 No score
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.
- Record
EUVD-2022-1909- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-25gw-4pcc-45cf
9.8
Deserialization of Untrusted Data in Apache Batik
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.
- Record
GHSA-25gw-4pcc-45cf- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-502
- Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2018-8013- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-8013
9.8
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.
- Record
DEBIAN-CVE-2018-8013- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVGHSA-25gw-4pcc-45cf
9.8
Deserialization of Untrusted Data in Apache Batik
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.
- Record
GHSA-25gw-4pcc-45cf- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-502
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-8013
9.8
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.
- Record
UBUNTU-CVE-2018-8013- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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
OSVUSN-3661-1 No score
batik vulnerability
It was discovered that Batik incorrectly handled certain XML. An attacker could possibly use this to expose sensitive information.
- Record
USN-3661-1- Updated
- 2026-11-02
Affected products
- apache batik
- apache software foundation batik
- canonical ubuntu linux
- debian linux
- oracle business intelligence
- oracle communications diameter signaling router
- oracle communications metasolv solution
- oracle communications webrtc session controller
- oracle data integrator
- oracle enterprise repository
- oracle financial services analytical applications infrastructure
- oracle fusion middleware mapviewer
Show 10 moreShow less
- oracle instantis enterprisetrack
- oracle insurance calculation engine
- oracle insurance policy administration j2ee
- oracle jd edwards enterpriseone tools
- oracle retail back office
- oracle retail central office
- oracle retail integration bus
- oracle retail order broker
- oracle retail point-of-service
- oracle retail returns management
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.apache.xmlgraphics:batikMaven |
1.0 to 1.9.1 | 1.10 |
org.apache.xmlgraphics:batik-animTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-awt-utilTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-bridgeTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-codecTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-cssTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-domTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-extTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-extensionTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-extensionsTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
Show 27 moreShow less
| Package | Affected | Fixed |
|---|---|---|
org.apache.xmlgraphics:batik-gui-utilTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-gvtTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-jsTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-parserTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-rasterizerTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-rasterizer-extTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-scriptTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-slideshowTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-squiggleTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-squiggle-extTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-svg-domTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-svggenTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-svgppTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-swingTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-transcoderTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-ttf2svgTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-utilTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
org.apache.xmlgraphics:batik-xmlTuxCare:Maven |
1.7 up to 1.7-tuxcare.1 | 1.7-tuxcare.1 |
batikDebian:12 |
before 1.10-1 | 1.10-1 |
batikDebian:13 |
before 1.10-1 | 1.10-1 |
batikDebian:14 |
before 1.10-1 | 1.10-1 |
batikDebian:7 |
before 1.7+dfsg-3+deb7u3, plus listed versions 1.7+dfsg-31.7+dfsg-3+deb7u11.7+dfsg-3+deb7u2 |
1.7+dfsg-3+deb7u3 |
batikDebian:8 |
before 1.7+dfsg-5+deb8u1, plus listed versions 1.7+dfsg-5 |
1.7+dfsg-5+deb8u1 |
batikDebian:9 |
before 1.8-4+deb9u1, plus listed versions 1.8-4 |
1.8-4+deb9u1 |
org.apache.xmlgraphics:batikMaven |
1.0 up to 1.10, plus listed versions 1.9.1 |
1.10 |
batikUbuntu:14.04:LTS |
before 1.7.ubuntu-8ubuntu2.14.04.3, plus listed versions 1.7.ubuntu-8ubuntu21.7.ubuntu-8ubuntu2.14.04.11.7.ubuntu-8ubuntu2.14.04.2 |
1.7.ubuntu-8ubuntu2.14.04.3 |
batikUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 1.7.ubuntu-8ubuntu31.8-31.8-3ubuntu11.8-3ubuntu1+esm1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-8013 is a critical vulnerability (CVSS 9.8) in Apache Batik, published May 23, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 18.6%, the 97th percentile. Fixed in org.apache.xmlgraphics:batik 1.10.
References
securityfocus.com/bid/104252
lists.debian.org/debian-lts-announce/2018/05/msg00016.html
debian.org/security/2018/dsa-4215
usn.ubuntu.com/3661-1
mail-archives.apache.org/mod_mbox/xmlgraphics-batik-dev/201805.mbox/%3c000701d3f28f%24d01860a0%24704921e0%24%40gmail.com%3e
securitytracker.com/id/1040995
Show 22 moreShow less
lists.apache.org/thread.html/r9e90b4d1cf6ea87a79bb506541140dfbf4801f4463a7cee08126ee44%40%3Ccommits.xmlgraphics.apache.org%3E
lists.apache.org/thread.html/rc0a31867796043fbe59113fb654fe8b13309fe04f8935acb8d0fab19%40%3Ccommits.xmlgraphics.apache.org%3E
oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
oracle.com/security-alerts/cpujul2020.html
oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
xmlgraphics.apache.org/security.html
oracle.com/security-alerts/cpuoct2020.html
security.gentoo.org/glsa/202401-11
nvd.nist.gov/vuln/detail/CVE-2018-8013
lists.apache.org/thread.html/r9e90b4d1cf6ea87a79bb506541140dfbf4801f4463a7cee08126ee44@%3Ccommits.xmlgraphics.apache.org%3E
lists.apache.org/thread.html/rc0a31867796043fbe59113fb654fe8b13309fe04f8935acb8d0fab19@%3Ccommits.xmlgraphics.apache.org%3E
mail-archives.apache.org/mod_mbox/xmlgraphics-batik-dev/201805.mbox/%[email protected]%3e
github.com/apache/xmlgraphics-batik/commit/f91125b26a6ca2b7a1195f1842360bed03629839
issues.apache.org/jira/browse/BATIK-1222
ubuntu.com/security/CVE-2018-8013
github.com/advisories/GHSA-25gw-4pcc-45cf
security-tracker.debian.org/tracker/CVE-2018-8013
ubuntu.com/security/notices/USN-3661-1
cve.org/CVERecord?id=CVE-2018-8013