CVE-2022-44729: Batik bridge Apache XML Graphics Batik Server-Side Vulnerability

HIGH
Advisory Identifier: GHSA-gq5f-xv48-2365
CVSS 7.1
CWE-918
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-44729
GHSA Identifier GHSA-gq5f-xv48-2365
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Batik bridge
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability High (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.

org.apache.xmlgraphics:batik-bridge fixed: 1.17
<dependency>
    <groupId>org.apache.xmlgraphics</groupId>
    <artifactId>batik-bridge</artifactId>
    <version>1.17</version>
</dependency>
org.apache.xmlgraphics:batik-svgrasterizer fixed: 1.17
<dependency>
    <groupId>org.apache.xmlgraphics</groupId>
    <artifactId>batik-svgrasterizer</artifactId>
    <version>1.17</version>
</dependency>
org.apache.xmlgraphics:batik-transcoder fixed: 1.17
<dependency>
    <groupId>org.apache.xmlgraphics</groupId>
    <artifactId>batik-transcoder</artifactId>
    <version>1.17</version>
</dependency>
Verify Direct and Transitive Dependencies

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

Server-Side Request Forgery (SSRF) vulnerability in Apache Software Foundation Apache XML Graphics Batik.This issue affects Apache XML Graphics Batik: 1.16. On 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.

CVE-2022-44729 Affected Batik bridge Versions

3 component(s)
Fixed Versions:
1.17
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?
CVE-2022-44729 is a security vulnerability in Batik bridge involving Apache XML Graphics Batik Server-Side Request Forgery vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Batik bridge versions are affected?
Affected versions include releases prior to 1.17 across affected packages: org.apache.xmlgraphics:batik-bridge, org.apache.xmlgraphics:batik-svgrasterizer, org.apache.xmlgraphics:batik-transcoder.
What version fixes CVE-2022-44729?
Upgrading to 1.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is batik-bridge affected?
Yes, org.apache.xmlgraphics:batik-bridge is affected in releases prior to 1.17. Upgrade your dependency to 1.17 or later.
Is batik-svgrasterizer affected?
Yes, org.apache.xmlgraphics:batik-svgrasterizer is affected in releases prior to 1.17. Upgrade your dependency to 1.17 or later.
What is the CVSS score of CVE-2022-44729?
CVE-2022-44729 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H.
What CWE is associated with CVE-2022-44729?
CVE-2022-44729 is classified under CWE-918: Server-Side Request Forgery (SSRF) (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.).
How can I check Maven dependencies for CVE-2022-44729?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.xmlgraphics'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}