CVE-2022-44730: Batik script Apache Batik Information Disclosure Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-2474-2566-3qxp
CVSS 4.4
CWE-918
Published
Advisory Summary

CVE-2022-44730 is a MODERATE (CVSS 4.4) apache batik information disclosure vulnerability vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Batik script libraries in the Maven ecosystem. The issue involves apache batik information disclosure vulnerability. Remediation is available by upgrading affected packages to version 1.17.

CVE-2022-44730 at a Glance

CVE Identifier CVE-2022-44730
GHSA Identifier GHSA-2474-2566-3qxp
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Batik script
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.4

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:L/I:L/A:N).

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 Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2022-44730

To remediate this vulnerability, upgrade all affected Batik script 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-script fixed: 1.17
<dependency>
    <groupId>org.apache.xmlgraphics</groupId>
    <artifactId>batik-script</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-44730, 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 script 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 script, 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. A malicious SVG can probe user profile / data and send it directly as parameter to a URL.

CVE-2022-44730 Affected Batik script Versions

1 component(s)
Fixed Versions:
1.17
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.xmlgraphics:batik-script
Maven
≥ 1.0
< 1.17
1.17

References

Frequently Asked Questions

What is CVE-2022-44730?
CVE-2022-44730 is a security vulnerability in Batik script involving Apache Batik information disclosure vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Batik script versions are affected?
Affected versions include releases prior to 1.17 across affected packages: org.apache.xmlgraphics:batik-script.
What version fixes CVE-2022-44730?
Upgrading to 1.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is batik-script affected?
Yes, org.apache.xmlgraphics:batik-script is affected in releases prior to 1.17. Upgrade your dependency to 1.17 or later.
What is the CVSS score of CVE-2022-44730?
CVE-2022-44730 has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2022-44730?
CVE-2022-44730 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-44730?
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-2474-2566-3qxp",
  "modified" : "2025-02-13T19:10:28Z",
  "published" : "2023-08-22T21:30:26Z",
  "aliases" : [ "CVE-2022-44730" ],
  "summary" : "Apache Batik information disclosure 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\nA malicious SVG can probe user profile / data and send it directly as parameter to a URL.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.xmlgraphics:batik-script"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0"
      }, {
        "fixed" : "1.17"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-44730"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/xmlgraphics-batik/commit/64658ccda90deaf6bf5f5b4d4a2ec365fe648bfa"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/xmlgraphics-batik/commit/f9ae69233eadfbd392a4a08a55618f97343b467c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/xmlgraphics-batik"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/BATIK-1347"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/58m5817jr059f4v1zogh0fngj9pwjyj0"
  }, {
    "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/3"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2023/08/22/5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-23T17:51:53Z",
    "nvd_published_at" : "2023-08-22T19:16:29Z"
  }
}