Server-Side Request Forgery (SSRF) Vulnerability in Apache XML Graphics Batik

batik Updated 02 Oct 2025

Summary

22/09/2022
N/A
Yes i
Medium
5.3

CVE-2022-38398: Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to load a url thru the jar protocol. Affects batik across 2 version ranges.

< 1.12-4+deb11u3 < 6f03c1c80f51f53c61d506a544d810bfc111ec4f

Fixed in 1.12-4+deb11u3. 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 XML Graphics Batik is a powerful toolkit for working with SVG (Scalable Vector Graphics) files. It provides a range of features for creating, manipulating, and rendering SVG content. However, it has been found to be vulnerable to a Server-Side Request Forgery (SSRF) attack, which can allow attackers to exploit the application by loading URLs through the jar protocol.

Vulnerability Detail

The SSRF vulnerability in Apache XML Graphics Batik allows an attacker to manipulate the application into making requests to arbitrary URLs. This can lead to unauthorized access to internal services or sensitive data, as the application may inadvertently expose internal network resources. The vulnerability originates from improper validation of user input when handling requests, which can be exploited to load malicious URLs.

How To Fix

Minimum fixed version

1.12-4+deb11u3

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

If immediate upgrading is not feasible, consider implementing network-level controls to restrict access to sensitive internal services. Additionally, validate and sanitize all user inputs to prevent unauthorized URL requests.

Conclusion

The SSRF vulnerability in Apache XML Graphics Batik poses a significant risk by allowing attackers to load arbitrary URLs. It is crucial to update to the latest version to mitigate this risk and ensure the security of your applications.

See every vulnerability recorded for batik →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 5.3, indicating a medium level of severity.

The vulnerability affects Apache XML Graphics Batik version 1.14 and earlier.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized access to internal services, data leakage, and potential compromise of sensitive information.

Yes, you can implement network-level controls to restrict access to sensitive services and ensure that all user inputs are validated and sanitized.

Related vulnerabilities

Recent vulnerabilities recorded for batik.

How To Fix

Minimum fixed version

1.12-4+deb11u3

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