Apache Derby: LDAP injection vulnerability in authenticator
A cleverly devised username might bypass LDAP authentication checks. In LDAP-authenticated Derby installations, this could let an attacker fill up the disk by creating junk Derby databases. In LDAP-authenticated Derby installations, this could also allow the attacker to execute malware which was visible to and executable by the account which booted the Derby server. In LDAP-protected databases which weren't also protected by SQL GRANT/REVOKE authorization, this vulnerability could also let an attacker view and corrupt sensitive data and run sensitive database functions and procedures.
Mitigation:
Users should upgrade to Java 21 and Derby 10.17.1.0.
Alternatively, users who wish to remain on older Java versions should build their own Derby distribution from one of the release families to which the fix was backported: 10.16, 10.15, and 10.14. Those are the releases which correspond, respectively, with Java LTS versions 17, 11, and 8.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.derby:derby | >= 10.1.1.0, <= 10.1.3.1, >= 10.2.1.6, <= 10.2.2.0, >= 10.3.1.4, <= 10.3.3.0, >= 10.4.1.3, <= 10.4.2.0, >= 10.5.1.1, <= 10.5.3.0, >= 10.6.1.0, <= 10.6.2.1, >= 10.8.1.2, <= 10.8.3.0, >= 10.10.1.1, <= 10.10.2.0, >= 10.14.2.0, < 10.14.2.1, >= 10.16.1.1, < 10.16.1.2, >= 10.15.1.3, < 10.15.2.1, = 10.7.1.1, = 10.9.1.0, = 10.11.1.1, = 10.12.1.1, = 10.13.1.1 | 10.14.2.1, 10.16.1.2, 10.15.2.1 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-74, CWE-94- Platform
- Java / Kotlin (Maven)
- Package
org.apache.derby:derby- Disclosed
- 20.11.2023
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - GHSA-rcjc-c4pj-xxrp - CC BY 4.0
Vulnerability history: org.apache.derby:derby
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 7
- First → latest
- 05.2022 11.2023
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 1
- Medium 4
Disclosures per year
- 2022: 6
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 0
-
Apache Derby: LDAP injection vulnerability in authenticator this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.