Apache Batik SVG Library Arbitrary Code Execution

batik Updated 02 Oct 2025

Summary

29/10/2022
N/A
Yes i
Unrated
Not published

DLA-3169-1: batik - security update. Affects batik versions < 1.10-2+deb10u2. Fixed in 1.10-2+deb10u2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Batik is an open-source SVG (Scalable Vector Graphics) library for Java. It provides a set of APIs for rendering and manipulating SVG images. The library is widely used in various applications and frameworks that require SVG support. However, a security vulnerability has been discovered in Apache Batik that allows attackers to execute arbitrary Java code by processing a malicious SVG file.

Vulnerability Detail

The vulnerability in Apache Batik arises from a flaw in the SVG file processing mechanism. By crafting a specially crafted SVG file, an attacker can inject and execute arbitrary Java code within the context of the application using the library. This can lead to various security risks, including remote code execution, privilege escalation, and unauthorized access to sensitive data.

How To Fix

Minimum fixed version

1.10-2+deb10u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade batik

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the provided security update to ensure the proper mitigation of the issue.

Conclusion

The vulnerability in Apache Batik allows attackers to execute arbitrary Java code through malicious SVG files. To mitigate this risk, it is crucial to upgrade the batik package to the recommended version. Failure to apply the security update may result in remote code execution, privilege escalation, and unauthorized access to sensitive data. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for batik →

Share this vulnerability

FAQ

Apache Batik is an open-source SVG library for Java that provides APIs for rendering and manipulating SVG images.

The vulnerability allows attackers to execute arbitrary Java code by processing a malicious SVG file. This can lead to remote code execution, privilege escalation, and unauthorized access to sensitive data.

To fix this vulnerability, you should upgrade the batik package to version 1.10-2+deb10u2 or later.

There is no known workaround for this vulnerability. It is crucial to apply the provided security update to mitigate the risk.

You can find more information about this vulnerability in the Debian Security Tracker page for batik: https://security-tracker.debian.org/tracker/batik

Related vulnerabilities

Recent vulnerabilities recorded for batik.

How To Fix

Minimum fixed version

1.10-2+deb10u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade batik

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback