Cloudanix VulnDB

CVE-2018-1313

Medium · 5.3

CVSS

5.3

EPSS

4.6%

Published

May 7, 2018

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A database server component could be tricked into loading a database controlled by an outsider when security restrictions were missing or too loose.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
High
Impact
Data Tampering
Component
Application
Class
Authorization Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The flaw permits an unauthenticated remote attacker to supply a crafted network packet that instructs the Derby Network Server to boot an arbitrary database whose location and contents are controlled by the attacker, bypassing authorization when the Java Security Manager is absent or the default permissive policy is in use.

Why it matters to the business

Organizations running affected Derby or WebLogic deployments risk unauthorized database access or content manipulation, potentially leading to data exposure, integrity loss, or further system compromise in environments lacking restrictive security policies.

How an attack unfolds

An attacker identifies an exposed Derby Network Server instance, crafts a network packet requesting boot of a database under their control, and sends it; if no Java Security Manager or only the default permissive policy is active, the server loads the attacker-controlled database allowing subsequent unauthorized operations.

How to fix it

Configure a restrictive Java Security Manager policy that denies read access to arbitrary database locations; upgrade Derby to a version later than 10.14.1.0 where the permissive default policy has been removed; apply vendor patches for Oracle WebLogic Server that incorporate hardened Derby components.

How to confirm the fix worked

Review the active Java policy file to confirm absence of broad read permissions for database directories; test connectivity with crafted boot packets in a lab environment to verify rejection; inventory Derby versions across all instances and confirm upgrade status.

Typical attack path

  1. Scan for publicly reachable Derby Network Server ports
  2. Craft and transmit a malicious boot request packet referencing an attacker-controlled database location
  3. Leverage the loaded database to read or modify data if the server policy permits
  4. Pivot to additional actions such as code execution or lateral movement within the environment

How to detect it

Inspect Derby Network Server logs for unexpected database boot requests containing non-standard paths; correlate with network logs for connections from untrusted sources attempting boot operations; review policy file usage and any policy-related warnings at startup.

What your security team should do

  • Immediately enforce a restrictive Java Security Manager policy on all Derby Network Server instances
  • Upgrade affected Derby and WebLogic deployments to patched releases
  • Restrict network access to Derby ports to trusted clients only
  • Monitor for anomalous database boot requests in server logs

The record

In Apache Derby 10.3.1.4 to 10.14.1.0, a specially-crafted network packet can be used to request the Derby Network Server to boot a database whose location and contents are under the user's control. If the Derby Network Server is not running with a Java Security Manager policy file, the attack is successful. If the server is using a policy file, the policy file must permit the database location to be read for the attack to work. The default Derby Network Server policy file distributed with the affected releases includes a permissive policy as the default Network Server policy, which allows the attack to work.

Affected packages

Ecosystem Package Introduced Fixed
Maven org.apache.derby:derby 10.3.1.4 10.14.2.0
Debian:11 derby 0 10.14.2.0-1
Debian:12 derby 0 10.14.2.0-1
Debian:13 derby 0 10.14.2.0-1
Ubuntu:16.04:LTS derby 0 No fix
Ubuntu:18.04:LTS derby 0 No fix
Ubuntu:20.04:LTS derby 0 10.14.2.0-1
Ubuntu:Pro:16.04:LTS derby 0 No fix
Ubuntu:Pro:18.04:LTS derby 0 No fix
maven org.apache.derby/derby 10.3.1.4 No fix

Related vulnerabilities