Cloudanix VulnDB

CVE-2015-1832

Critical · 9.1

CVSS

9.1

EPSS

12.2%

Published

Oct 3, 2016

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Identify an application endpoint or query that accepts or processes XML data via Derby's XML features
  2. Craft an XML payload embedding external entity declarations pointing to local files or large external resources
  3. Submit the payload through normal application channels that invoke SqlXmlUtil
  4. 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