CVE-2015-1832: Derby Improper Restriction Of XML External Vulnerability

CRITICAL
Advisory Identifier: GHSA-wr69-g62g-2r9h
CVSS 9.1
CWE-611
Published
Advisory Summary

CVE-2015-1832 is a CRITICAL (CVSS 9.1) improper restriction of xml external vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Derby libraries in the Maven ecosystem. The issue involves improper restriction of xml external entity reference in apace derby. Remediation is available by upgrading affected packages to version 10.12.1.1.

CVE-2015-1832 at a Glance

CVE Identifier CVE-2015-1832
GHSA Identifier GHSA-wr69-g62g-2r9h
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Derby
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2015-1832

To remediate this vulnerability, upgrade all affected Derby 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.derby:derby fixed: 10.12.1.1
<dependency>
    <groupId>org.apache.derby</groupId>
    <artifactId>derby</artifactId>
    <version>10.12.1.1</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.derby

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2015-1832, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.derby

Analyze the terminal output to locate any version of Derby in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.12.1.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.derby 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-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Derby, 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 SqlXmlUtil code in Apache Derby before 10.12.1.1, when a Java Security Manager is not in place, allows context-dependent attackers to read arbitrary files or cause a denial of service (resource consumption) via vectors involving XmlVTI and the XML datatype.

CVE-2015-1832 Affected Derby Versions

1 component(s)
Fixed Versions:
10.12.1.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.derby:derby
Maven
< 10.12.1.1
10.12.1.1

References

NVD — CVE-2015-1832 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-1832
issues.apache.org/jira/browse/derby-6... WEB
https://issues.apache.org/jira/browse/DERBY-6807
lists.apache.org/thread.html/519eb0f... WEB
https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/708d941... WEB
https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451@%3Csolr-user.lucene.apache.org%3E
lists.apache.org/thread.html/b0656d3... WEB
https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/f9bc3e5... WEB
https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
lists.apache.org/thread.html/r204ba2... WEB
https://lists.apache.org/thread.html/r204ba2a9ea750f38d789d2bb429cc0925ad6133deea7cbc3001d96b5@%3Csolr-user.lucene.apache.org%3E
svn.apache.org/viewvc WEB
https://svn.apache.org/viewvc?view=revision&revision=1691461
Derby Security Information SECURITY
https://www.oracle.com/security-alerts/cpuapr2020.html
Derby Security Information SECURITY
https://www.oracle.com/security-alerts/cpuoct2020.html
Derby Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
Derby Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
www-01.ibm.com/support/docview.wss WEB
http://www-01.ibm.com/support/docview.wss?uid=swg21990100

Frequently Asked Questions

What is CVE-2015-1832?
CVE-2015-1832 is a security vulnerability in Derby involving Improper Restriction of XML External Entity Reference in Apace Derby under CWE-611: Improper Restriction of XML External Entity Reference.
Which Derby versions are affected?
Affected versions include releases prior to 10.12.1.1 across affected packages: org.apache.derby:derby.
What version fixes CVE-2015-1832?
Upgrading to 10.12.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is derby affected?
Yes, org.apache.derby:derby is affected in releases prior to 10.12.1.1. Upgrade your dependency to 10.12.1.1 or later.
What is the CVSS score of CVE-2015-1832?
CVE-2015-1832 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.
What CWE is associated with CVE-2015-1832?
CVE-2015-1832 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Maven dependencies for CVE-2015-1832?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.derby'. 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-wr69-g62g-2r9h",
  "modified" : "2022-07-06T20:23:16Z",
  "published" : "2022-05-13T01:14:26Z",
  "aliases" : [ "CVE-2015-1832" ],
  "summary" : "Improper Restriction of XML External Entity Reference in Apace Derby",
  "details" : "XML external entity (XXE) vulnerability in the SqlXmlUtil code in Apache Derby before 10.12.1.1, when a Java Security Manager is not in place, allows context-dependent attackers to read arbitrary files or cause a denial of service (resource consumption) via vectors involving XmlVTI and the XML datatype.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.derby:derby"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.12.1.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.11.1.1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-1832"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/DERBY-6807"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451@%3Csolr-user.lucene.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r204ba2a9ea750f38d789d2bb429cc0925ad6133deea7cbc3001d96b5@%3Csolr-user.lucene.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://svn.apache.org/viewvc?view=revision&revision=1691461"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuapr2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuoct2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html"
  }, {
    "type" : "WEB",
    "url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21990100"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-06T20:23:16Z",
    "nvd_published_at" : "2016-10-03T21:59:00Z"
  }
}