Critical

Deserialization of Untrusted Data in Apache Batik

  • Disclosed: 13.05.2022
  • Updated: 11.10.2026 12:21

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.xmlgraphics:batik >= 1.0, < 1.10 1.10

References

CVSS score 9.8/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-502
Platform
Java / Kotlin (Maven)
Package
org.apache.xmlgraphics:batik
Disclosed
13.05.2022
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-25gw-4pcc-45cf - CC BY 4.0

Vulnerability history: org.apache.xmlgraphics:batik

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (9) in the archive
Total entries
9
First → latest
02.2022 10.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 5
  • Medium 3

Disclosures per year

  1. 2022: 9
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 0
Severity:
  1. High · 7.5 CVE-2022-42890 < 1.16 1.16
  2. High · 7.5 CVE-2022-40146 >= 1.0, < 1.15 1.15
  3. Deserialization of Untrusted Data in Apache Batik this entry
    Critical · 9.8 CVE-2018-8013 >= 1.0, < 1.10 1.10
  4. High · 7.5 CVE-2019-17566 < 1.13 1.13

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.