GitHub Advisoryadvisory · Maven

GHSA-25gw-4pcc-45cf Deserialization of Untrusted Data in Apache Batik

CRITICAL Published 2022-05-13 Modified 2024-03-04 Official page ↗
Aliases
CVE-2018-8013
Ecosystem
Maven
Packages
org.apache.xmlgraphics:batik
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-502
Reviewed
2022-06-29

Affected packages

• Maven org.apache.xmlgraphics:batik: >= 1.0, < 1.10 → 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.

Related

Alias · CVE (1)

  • 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… vulnerability

Weakness · CWE (1)

  • CWE-502 Deserialization of Untrusted Data weakness

References