SSRF Vulnerability in Apache XML Graphics Batik: Critical Security Flaw in Resource Handling

batik Updated 02 Oct 2025

Summary

22/08/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2022-44729: Server-Side Request Forgery (SSRF) vulnerability in Apache Software Foundation Apache XML Graphics Batik.This issue affects Apache XML Graphics Batik: 1.16. Affects batik versions < 1.12-4+deb11u2. Fixed in 1.12-4+deb11u2. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache XML Graphics Batik is a powerful toolkit for processing and rendering SVG (Scalable Vector Graphics) files. It provides a comprehensive set of features for manipulating SVG content, making it a popular choice for developers working with graphics in Java applications. However, a recently identified Server-Side Request Forgery (SSRF) vulnerability poses significant risks, particularly in version 1.16, where malicious SVG files can trigger the loading of external resources by default.

Vulnerability Detail

The vulnerability arises from the way Apache XML Graphics Batik handles external resource loading in SVG files. In version 1.16, a crafted SVG file can exploit this flaw, leading to unintended resource consumption or even information disclosure. This SSRF vulnerability can allow attackers to make requests to internal services or external systems, potentially exposing sensitive data or causing denial of service.

How To Fix

Minimum fixed version

1.12-4+deb11u2

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

As a temporary measure, users can disable external resource loading in Batik by modifying the SVG processing settings. This can help mitigate the risk until the package is updated. However, specific implementation details may vary based on the application context.

Conclusion

The SSRF vulnerability in Apache XML Graphics Batik poses a significant security risk, particularly in version 1.16. Users are strongly advised to upgrade to the latest patched versions to safeguard their applications against potential exploitation. Regular monitoring and prompt updates are essential for maintaining security.

See every vulnerability recorded for batik →

Share this vulnerability

FAQ

Server-Side Request Forgery (SSRF) is a security vulnerability that allows an attacker to send crafted requests from a vulnerable server to internal or external resources, potentially leading to data exposure or service disruption.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to receive alerts.

The risks include unauthorized access to internal services, potential data leakage, and increased resource consumption, which can lead to denial of service.

Yes, you can temporarily disable external resource loading in Batik, but this is not a permanent solution and may affect functionality.

Detailed information can be found in the official Debian CVE database and the Apache XML Graphics Batik documentation.

Related vulnerabilities

Recent vulnerabilities recorded for batik.

How To Fix

Minimum fixed version

1.12-4+deb11u2

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