org.apache.xmlgraphics:batik-dom@1.6.1 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.apache.xmlgraphics:batik-dom package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • C
Information Exposure

org.apache.xmlgraphics:batik-dom is a Java-based toolkit for applications or applets that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as display, generation or manipulation.

Affected versions of this package are vulnerable to Information Exposure during deserialization. When deserializing a 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.

How to fix Information Exposure?

Upgrade org.apache.xmlgraphics:batik-dom to version 1.10 or higher.

[,1.10)
  • H
XML External Entity (XXE) Injection

org.apache.xmlgraphics:batik-dom is a Java-based toolkit for applications or applets that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as display, generation or manipulation.

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection. Files lying on the filesystem of the server which uses batik can be revealed to arbitrary users who send maliciously formed SVG files. The file types that can be shown depend on the user context in which the exploitable application is running. If the user is root a full compromise of the server - including confidential or sensitive files - would be possible. XXE can also be used to attack the availability of the server via denial of service as the references within a xml document can trivially trigger an amplification attack.

How to fix XML External Entity (XXE) Injection?

Upgrade org.apache.xmlgraphics:batik-dom to version 1.9 or higher.

[,1.9)
  • M
XML External Entity (XXE) Injection

org.apache.xmlgraphics:batik-dom is a Java-based toolkit for applications or applets that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as display, generation or manipulation.

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection in the SVG to PNG and JPG conversion classes which allows remote attackers to read arbitrary files or cause a denial of service via a crafted SVG file.

How to fix XML External Entity (XXE) Injection?

Upgrade org.apache.xmlgraphics:batik-dom to version 1.8 or higher.

[,1.8)