CVE-2015-0250: Batik Improper Input Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-wfw6-mmmp-87xm
CWE-20
Published
Advisory Summary

CVE-2015-0250 is a MODERATE improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Batik libraries in the Maven ecosystem. The issue involves improper input validation in apache batik. Remediation is available by upgrading affected packages to version 1.8.

CVE-2015-0250 at a Glance

CVE Identifier CVE-2015-0250
GHSA Identifier GHSA-wfw6-mmmp-87xm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Batik
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2015-0250

To remediate this vulnerability, upgrade all affected Batik 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 fixed: 1.8
<dependency>
    <groupId>org.apache.xmlgraphics</groupId>
    <artifactId>batik</artifactId>
    <version>1.8</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-2015-0250, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Batik, 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

XML external entity (XXE) vulnerability in the SVG to (1) PNG and (2) JPG conversion classes in Apache Batik 1.x before 1.8 allows remote attackers to read arbitrary files or cause a denial of service via a crafted SVG file.

CVE-2015-0250 Affected Batik Versions

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

References

Frequently Asked Questions

What is CVE-2015-0250?
CVE-2015-0250 is a security vulnerability in Batik involving Improper Input Validation in Apache Batik under CWE-20: Improper Input Validation.
Which Batik versions are affected?
Affected versions include releases prior to 1.8 across affected packages: org.apache.xmlgraphics:batik.
What version fixes CVE-2015-0250?
Upgrading to 1.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is batik affected?
Yes, org.apache.xmlgraphics:batik is affected in releases prior to 1.8. Upgrade your dependency to 1.8 or later.
What CWE is associated with CVE-2015-0250?
CVE-2015-0250 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2015-0250?
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-wfw6-mmmp-87xm",
  "modified" : "2022-07-06T20:29:14Z",
  "published" : "2022-05-17T00:28:34Z",
  "aliases" : [ "CVE-2015-0250" ],
  "summary" : "Improper Input Validation in Apache Batik",
  "details" : "XML external entity (XXE) vulnerability in the SVG to (1) PNG and (2) JPG conversion classes in Apache Batik 1.x before 1.8 allows remote attackers to read arbitrary files or cause a denial of service via a crafted SVG file.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.xmlgraphics:batik"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0"
      }, {
        "fixed" : "1.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-0250"
  }, {
    "type" : "WEB",
    "url" : "http://advisories.mageia.org/MGASA-2015-0138.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/130964/Apache-Batik-XXE-Injection.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-0041.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-0042.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2015/Mar/142"
  }, {
    "type" : "WEB",
    "url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21963275"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2015/dsa-3205"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2015:203"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1032781"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2548-1"
  }, {
    "type" : "WEB",
    "url" : "http://xmlgraphics.apache.org/security.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-06T20:29:14Z",
    "nvd_published_at" : "2015-03-24T17:59:00Z"
  }
}