Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2022-40146 EUVD-2022-6834GHSA-h4qg-p7r2-cpg3

Jar url should be blocked by DefaultScriptSecurity

Published Sep 22, 2022 · Updated Nov 3, 2025 · Assigned by apache

Description

Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to access files using a Jar url. This issue affects Apache XML Graphics Batik 1.14.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache XML Graphics Batik 1.14 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 batik 1.15+dfsg-1 —
Debian 13 batik 1.15+dfsg-1 —
Debian 12 batik 1.15+dfsg-1 —
Debian 11 batik 1.12-4+deb11u3 DLA-4243-1
Debian 10 batik 1.10-2+deb10u3 DLA-3619-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 batik No fix yet —
Ubuntu 26.04 LTS batik No fix yet —
Ubuntu 25.10 batik No fix yet —
Ubuntu 24.04 LTS batik No fix yet —
Ubuntu 22.04 LTS batik 1.14-1ubuntu0.2 USN-6117-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS batik 1.12-1ubuntu0.1 USN-6117-1
Ubuntu 18.04 LTS batik 1.10-2~18.04.1 USN-6117-1
Ubuntu Pro 16.04 LTS batik 1.8-3ubuntu1+esm1 USN-6117-1
Ubuntu Pro 14.04 LTS batik 1.7.ubuntu-8ubuntu2.14.04.3+esm1 USN-6117-1
ReleasePackageFixed inAdvisory
SLES 12 SP5 xmlgraphics-batik 1.17-2.7.1 SUSE-SU-2024:0777-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 batik +7 1.8-0.12.svn1230816.amzn2.0.1 ALAS2-2023-1966

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.xmlgraphics:batik >= 1.0, < 1.15 1.15 GHSA-h4qg-p7r2-cpg3

Advisories 13

References