CVE-2022-40146

HIGH

Apache Batik 1.14 - Server-Side Request Forgery via Jar URL

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2022-40146. PoCs published by cckuailong, soulfoodisgood.

AI-analyzed exploit summary This repository contains functional exploit code for CVE-2022-40146, demonstrating SSRF and RCE vulnerabilities in Apache Batik via crafted SVG files with embedded Java archives or ECMAScript. The PoC includes a Java-based payload and detailed HTTP request examples for exploitation.

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.

Exploits (2)

nomisec WORKING POC 30 stars
by cckuailong · poc
https://github.com/cckuailong/CVE-2022-40146_Exploit_Jar

This repository contains functional exploit code for CVE-2022-40146, demonstrating SSRF and RCE vulnerabilities in Apache Batik via crafted SVG files with embedded Java archives or ECMAScript. The PoC includes a Java-based payload and detailed HTTP request examples for exploitation.

Classification
Working Poc 95%
Attack Type
Rce | Ssrf
Complexity
Moderate
Reliability
Reliable
Target: Apache Batik (XML Graphics)
No auth needed
Prerequisites: Access to a vulnerable Apache Batik instance · Ability to send crafted SVG files to the target
devstral-2 · analyzed Feb 19, 2026 Full analysis →
nomisec WORKING POC
by soulfoodisgood · poc
https://github.com/soulfoodisgood/CVE-2022-40146

This repository contains a functional PoC for CVE-2022-40146, demonstrating an RCE vulnerability in Apache Batik's SVG transcoder. The exploit leverages the `KEY_EXECUTE_ONLOAD` and `KEY_ALLOWED_SCRIPT_TYPES` hints to enable script execution during SVG-to-JPEG conversion.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Batik (versions affected by CVE-2022-40146)
No auth needed
Prerequisites: Network access to the vulnerable service · Ability to send crafted SVG data to the `/convert` endpoint
devstral-2 · analyzed Feb 19, 2026 Full analysis →

Scores

CVSS v3 7.5
EPSS 0.4778
EPSS Percentile 97.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Details

CWE
CWE-918
Status published
Products (3)
apache/batik 1.14
debian/debian_linux 10.0
org.apache.xmlgraphics/batik 1.0 - 1.15Maven
Published Sep 22, 2022
Tracked Since Feb 18, 2026