CVE-2022-44729: Batik bridge Apache XML Graphics Batik Server-Side Vulnerability
HIGHCVE-2022-44729 is a HIGH (CVSS 7.1) apache xml graphics batik server-side vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Batik bridge libraries in the Maven ecosystem. The issue involves apache xml graphics batik server-side request forgery vulnerability. Remediation is available by upgrading affected packages to version 1.17.
CVE-2022-44729 at a Glance
Security Impact
CVSS: 7.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H).
How to Fix CVE-2022-44729
To remediate this vulnerability, upgrade all affected Batik bridge dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-bridge</artifactId>
<version>1.17</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-svgrasterizer</artifactId>
<version>1.17</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-transcoder</artifactId>
<version>1.17</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.xmlgraphics
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2022-44729, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.xmlgraphics
Analyze the terminal output to locate any version of Batik bridge in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.17), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.xmlgraphics command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Batik bridge, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-44729 Affected Batik bridge Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.xmlgraphics:batik-bridge
|
Maven |
≥ 1.0
< 1.17
|
1.17
|
|
org.apache.xmlgraphics:batik-svgrasterizer
|
Maven |
≥ 1.0
< 1.17
|
1.17
|
|
org.apache.xmlgraphics:batik-transcoder
|
Maven |
≥ 1.0
< 1.17
|
1.17
|
References
Frequently Asked Questions
What is CVE-2022-44729?
Which Batik bridge versions are affected?
What version fixes CVE-2022-44729?
Is batik-bridge affected?
Is batik-svgrasterizer affected?
What is the CVSS score of CVE-2022-44729?
What CWE is associated with CVE-2022-44729?
How can I check Maven dependencies for CVE-2022-44729?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gq5f-xv48-2365",
"modified" : "2025-02-13T19:10:32Z",
"published" : "2023-08-22T21:30:26Z",
"aliases" : [ "CVE-2022-44729" ],
"summary" : "Apache XML Graphics Batik Server-Side Request Forgery vulnerability",
"details" : "Server-Side Request Forgery (SSRF) vulnerability in Apache Software Foundation Apache XML Graphics Batik.This issue affects Apache XML Graphics Batik: 1.16.\n\nOn version 1.16, a malicious SVG could trigger loading external resources by default, causing resource consumption or in some cases even information disclosure. Users are recommended to upgrade to version 1.17 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.xmlgraphics:batik-bridge"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0"
}, {
"fixed" : "1.17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.xmlgraphics:batik-svgrasterizer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0"
}, {
"fixed" : "1.17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.xmlgraphics:batik-transcoder"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0"
}, {
"fixed" : "1.17"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-44729"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/xmlgraphics-batik/commit/85b3457d9902f64d5d409a8da060d5ba47d0b69b"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/xmlgraphics-batik/commit/aaa1dd3e6b5a7df781d73e0c37a1df6a8f318893"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/xmlgraphics-batik"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/BATIK-1349"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/hco2nw1typoorz33qzs0fcdx0ws6d6j2"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2023/10/msg00021.html"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202401-11"
}, {
"type" : "WEB",
"url" : "https://xmlgraphics.apache.org/security.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2023/08/22/2"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2023/08/22/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-23T17:53:44Z",
"nvd_published_at" : "2023-08-22T19:16:29Z"
}
}