CVE-2018-8013 Deserialization of Untrusted Data in Apache Batik

Critical 9.8 Published Updated

An attacker can execute arbitrary code by exploiting unsafe deserialization in Apache Batik when processing malicious input streams.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-8013?

CVE-2018-8013 is a critical unsafe deserialization vulnerability in Canonical Ubuntu Linux, published on 24 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-502

Which versions are affected by CVE-2018-8013?

2 open source packages ship an affected version, including org.apache.xmlgraphics:batik. It affects 21 products.

PackageAffectedFixed in
org.apache.xmlgraphics:batik MavenFrom 1.01.10
org.apache.xmlgraphics:batik MavenFrom 1.01.10

Products include Apache Batik, Canonical Ubuntu Linux, Debian Debian Linux, Oracle Business Intelligence, Oracle Communications Diameter Signaling Router, Oracle Communications Metasolv Solution and 15 more.

How do I fix CVE-2018-8013?

Upgrade org.apache.xmlgraphics:batik to 1.10 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2018-8013 being exploited?

There is no known exploitation of CVE-2018-8013 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-8013, DLA-1385-1, GHSA-25gw-4pcc-45cf, UBUNTU-CVE-2018-8013, USN-3661-1.

Is CVE-2018-8013 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free