# CVE-2018-1313: Improper Access Control in Apache Derby

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, NVD) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 4.60% (percentile 92, 2026-11-26)
- **CWE:** CWE-284
- **Aliases:** GHSA-42xw-p62x-hwcf
- **Published:** 2018-05-07T13:00:00.000Z
- **Modified:** 2026-06-17T01:50:59.837Z

## Who should check

- Projects that depend on Maven package org.apache.derby:derby (\>= 10.3.1.4, \< 10.14.2.0)
- Anyone running Apache Software Foundation Apache Derby 10.3.1.4 to 10.14.1.0

## Description

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 and fixed versions

- Maven `org.apache.derby:derby`: affected \>= 10.3.1.4, \< 10.14.2.0; fixed 10.14.2.0 (osv)
- Apache Software Foundation Apache Derby: 10.3.1.4 to 10.14.1.0 (cvelist)

## Mitigation

- Upgrade org.apache.derby:derby to 10.14.2.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-1313. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-1313.md
Affected: org.apache.derby:derby >= 10.3.1.4, < 10.14.2.0
Fixed in: 10.14.2.0

Steps:
1. Search this machine and project for org.apache.derby:derby (Maven), Apache Software Foundation Apache Derby: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-1313 being exploited?

There is no confirmed exploitation: CVE-2018-1313 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 4.60% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-1313?

Medium: CVSS 5.3 (v3.1, scored by NVD). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2018-1313?

org.apache.derby:derby \>= 10.3.1.4, \< 10.14.2.0.

### Is there a fix for CVE-2018-1313?

Yes. Fixed in 10.14.2.0. Upgrade org.apache.derby:derby to 10.14.2.0 or later.

### How do I check if I'm affected by CVE-2018-1313?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2018-1313>
- patch: <https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html>
- other: <https://markmail.org/message/akkappppxcdqrgxk>
- other: <http://www.securityfocus.com/bid/104140>
- other: <https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E>
- other: <https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E>
- other: <https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E>
- other: <https://lists.apache.org/thread.html/re29ab90978e6c997377fb975f674f7514f6beb642bbf79deb45477e5%40%3Cdev.hive.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r437d94437e6aef31af689b1e7025d024d676fd1ea9901d74e3e9ae48%40%3Cissues.hive.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r6755f48d4f5e44e39bba7dbf8d746678239d7f1f2cc108125519ce53%40%3Cissues.hive.apache.org%3E>
- other: <https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E>
- other: <https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E>
- other: <https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r437d94437e6aef31af689b1e7025d024d676fd1ea9901d74e3e9ae48@%3Cissues.hive.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r6755f48d4f5e44e39bba7dbf8d746678239d7f1f2cc108125519ce53@%3Cissues.hive.apache.org%3E>
- other: <https://lists.apache.org/thread.html/re29ab90978e6c997377fb975f674f7514f6beb642bbf79deb45477e5@%3Cdev.hive.apache.org%3E>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-1313>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-42xw-p62x-hwcf> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2018-1313> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-1313>
