CVE-2018-8013 · apache
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 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.
Published 2018-05-24, last changed 2026-06-17. Weakness: CWE-502.
How to fix
Upgrade to a fixed version: org.apache.xmlgraphics:batik 1.10 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2018-05-24 | Published |
| 2022-05-13 | Package advisory GHSA-25gw-4pcc-45cf |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 18.3% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-25gw-4pcc-45cf | org.apache.xmlgraphics:batik (Maven) | 1.10 |
Also known as: GHSA-25gw-4pcc-45cf
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2022-42890 | 2022-10-25 | 7.5 | Apache Batik prior to 1.16 allows RCE via scripting |
| CVE-2022-41704 | 2022-10-25 | 7.5 | Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input |
| CVE-2022-40146 | 2022-09-22 | 7.5 | Jar url should be blocked by DefaultScriptSecurity |
| CVE-2022-38648 | 2022-09-22 | 5.3 | PDFTranscoder does not block external resources |
| CVE-2022-38398 | 2022-09-22 | 5.3 | Server-Side Request Forgery Information Disclosure Vulnerability |
| CVE-2019-17566 | 2020-11-12 | 7.5 | same package: org.apache.xmlgraphics:batik (Maven) |
| CVE-2017-5662 | 2017-04-18 | 7.3 | same package: org.apache.xmlgraphics:batik (Maven) |
| CVE-2015-0250 | 2015-03-24 | 6.4 | same package: org.apache.xmlgraphics:batik (Maven) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2018-8013, or call /api/v1/vulnerabilities/CVE-2018-8013. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.