Critical

Apache Derby: LDAP injection vulnerability in authenticator

  • Disclosed: 20.11.2023
  • Updated: 11.10.2026 13:19

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.

PlatformPackageVulnerable versionsFixed 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 score 9.8/10
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

  1. 2022: 6
  2. 2023: 1
  3. 2024: 0
  4. 2025: 0
  5. 2026: 0
  1. Apache Derby: LDAP injection vulnerability in authenticator this entry
    Critical · 9.8 CVE-2022-46337 >= 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
  2. High · 7.5 CVE-2010-2232 >= 10.1.2.1, < 10.4.2.0 10.4.2.0
  3. Critical · 9.1 CVE-2015-1832 < 10.12.1.1 10.12.1.1
  4. Medium · 5.3 CVE-2018-1313 >= 10.3.1.4, < 10.14.2.0 10.14.2.0
  5. Medium CVE-2006-7217 < 10.2.1.6 10.2.1.6
  6. Medium CVE-2005-4849 < 10.1.2.1 10.1.2.1

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.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.