CVE-2015-1832
Critical · 9.1CVSS
9.1
EPSS
12.2%
Published
Oct 3, 2016
CISA due date
—
Cloudanix analysis
A flaw in an older database component could let attackers read private files on the server or make the service unavailable unless the software is updated or additional protections are enabled.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- XXE
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Unauthenticated attackers can trigger XML external entity processing in SqlXmlUtil when handling XmlVTI with the XML datatype, enabling arbitrary file reads from the server filesystem or resource exhaustion leading to denial of service, provided no Java Security Manager is active.
Why it matters to the business
Attackers may obtain sensitive configuration files, credentials, or other data stored on the server or disrupt database availability, increasing breach risk and operational downtime for any application relying on the affected Derby version.
How an attack unfolds
An attacker supplies a malicious XML document containing external entity references through an application that uses Derby's XML datatype and XmlVTI mechanism; the parser resolves the entities without sandboxing, leaking file contents or consuming excessive resources.
How to fix it
Upgrade Apache Derby to version 10.12.1.1 or later. If an upgrade is not immediately possible, ensure a Java Security Manager policy is configured and enforced to restrict file and network access for the Derby process.
How to confirm the fix worked
Confirm the Derby version is 10.12.1.1 or newer via the database metadata or jar manifest; test that XML inputs with external entities no longer resolve local files or cause excessive resource use under the Security Manager.
Typical attack path
- Identify an application endpoint or query that accepts or processes XML data via Derby's XML features
- Craft an XML payload embedding external entity declarations pointing to local files or large external resources
- Submit the payload through normal application channels that invoke SqlXmlUtil
- Observe responses containing file contents or resulting resource exhaustion
How to detect it
Review application and Derby logs for XML parsing errors or unexpected external entity references; inspect query logs or application traffic for XML payloads containing DOCTYPE declarations with SYSTEM or PUBLIC entities; correlate with file access attempts outside normal application directories.
What your security team should do
- Prioritize upgrade of all Derby instances to 10.12.1.1+ within the next maintenance window
- Audit applications for use of XML datatype and XmlVTI and restrict their exposure where possible
- Enable and tune the Java Security Manager for Derby JVMs as a compensating control
- Add XXE-focused input validation or disable external entity resolution at the XML parser level if feasible
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Maven | org.apache.derby:derby | 0 | 10.12.1.1 |
| Debian:11 | derby | 0 | 10.13.1.1-1 |
| Debian:12 | derby | 0 | 10.13.1.1-1 |
| Debian:13 | derby | 0 | 10.13.1.1-1 |
| Mageia:5 | derby | 0 | 10.10.2.0-1.1.mga5 |
| Ubuntu:16.04:LTS | derby | 0 | No fix |
| Ubuntu:18.04:LTS | derby | 0 | 10.14.1.0-1ubuntu1 |
| Ubuntu:Pro:16.04:LTS | derby | 0 | No fix |
| openSUSE:Tumbleweed | derby | 0 | 10.11.1.1-3.2 |
Related vulnerabilities
- CVE-2022-46337 A cleverly devised username might bypass LDAP authentication checks. Also affects org.apache.derby:derby
- CVE-2018-1313 In Apache Derby 10.3.1.4 to 10.14.1.0, a specially-crafted network packet can be used to… Also affects org.apache.derby:derby
- CVE-2026-41983 Null pointer dereference vulnerability in the browser module. Impact: Successful… CWE-399
- CVE-2019-13648 In the Linux kernel through 5.2.1 on the powerpc platform, when hardware transactional… CWE-399
- CVE-2015-9252 An issue was discovered in QPDF before 7.0.0. CWE-399
- CVE-2012-0881 Apache Xerces2 Java Parser before 2.12.0 allows remote attackers to cause a denial of… CWE-399
- CVE-2015-7944 The RESTful control interface (aka RAPI or ganeti-rapi) in Ganeti before 2.9.7, 2.10.x… CWE-399
- CVE-2010-5329 The video_usercopy function in drivers/media/video/v4l2-ioctl.c in the Linux kernel… CWE-399