Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.xmlgraphics/batik-dom
  4. ›
  5. CVE-2018-8013

CVE-2018-8013: Deserialization of Untrusted Data

May 13, 2022 (updated June 29, 2022)

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.

References

  • www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
  • www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
  • www.securityfocus.com/bid/104252
  • www.securitytracker.com/id/1040995
  • github.com/advisories/GHSA-25gw-4pcc-45cf
  • lists.apache.org/thread.html/r9e90b4d1cf6ea87a79bb506541140dfbf4801f4463a7cee08126ee44@%3Ccommits.xmlgraphics.apache.org%3E
  • lists.apache.org/thread.html/rc0a31867796043fbe59113fb654fe8b13309fe04f8935acb8d0fab19@%3Ccommits.xmlgraphics.apache.org%3E
  • lists.debian.org/debian-lts-announce/2018/05/msg00016.html
  • mail-archives.apache.org/mod_mbox/xmlgraphics-batik-dev/201805.mbox/%3c000701d3f28f$d01860a0$704921e0$@gmail.com%3e
  • nvd.nist.gov/vuln/detail/CVE-2018-8013
  • usn.ubuntu.com/3661-1/
  • www.debian.org/security/2018/dsa-4215
  • www.oracle.com/security-alerts/cpujul2020.html
  • www.oracle.com/security-alerts/cpuoct2020.html
  • www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
  • www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
  • www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
  • xmlgraphics.apache.org/security.html

Code Behaviors & Features

Detect and mitigate CVE-2018-8013 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0 up to 1.9.1

Fixed versions

  • 1.10

Solution

Upgrade to version 1.10 or above.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

maven/org.apache.xmlgraphics/batik-dom/CVE-2018-8013.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:16 +0000.