Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.8

CVE-2022-46337: Apache Derby LDAP can fill disk or expose data

CVE-2022-46337 · published 3 years ago
Summary

If Apache Derby is set up to use LDAP for login, a crafted username can slip past the authentication check. This could let an attacker fill the server’s storage, run unwanted programs, and see or change sensitive information. Update to the latest Derby version (10.17.1.0) and Java 21, or rebuild Derby from a supported older release, to close the problem.

What to do
  • Update apache org.apache.derby:derby to version 10.14.3.
  • Update apache org.apache.derby:derby to version 10.15.2.1.
  • Update apache org.apache.derby:derby to version 10.16.1.2.
  • Update apache org.apache.derby:derby to version 10.17.1.0.
  • Update root io.root.org.apache.derby:derby to version 10.16.1.1-root.io.1781516531.
  • Update debian derby to version 10.14.2.0-3.
  • Update apache org.apache.derby:derby to version 10.14.2.1.
  • Update org.apache.derby:derby to version 10.16.1.1-aikido.3.
  • Update io.root.org.apache.derby:derby to version 10.16.1.1-root.io.3.
Affected software
Ecosystem VendorProductAffected versions
maven apache org.apache.derby:derby >= 10.1.1.0, < 10.14.3
>= 10.15.0.0, < 10.15.2.1
>= 10.16.0.0, < 10.16.1.2
>= 10.17.0.0, < 10.17.1.0
>= 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.7.1.1
>= 10.8.1.2, <= 10.8.3.0
8 more version ranges
Fix: upgrade to 10.14.3
– apache derby >= 10.1.1.0, < 10.14.3.0
>= 10.15.1.3, < 10.15.2.1
10.16.1.1
cpe:2.3:a:apache:derby:*:*:*:*:*:*:*:*
Root:Maven root io.root.org.apache.derby:derby < 10.16.1.1-root.io.1781516531
Fix: upgrade to 10.16.1.1-root.io.1781516531
Debian:12 debian derby All versions
Debian:13 debian derby < 10.14.2.0-3
Fix: upgrade to 10.14.2.0-3
Debian:14 debian derby < 10.14.2.0-3
Fix: upgrade to 10.14.2.0-3
Ubuntu:16.04:LTS canonical derby All versions
Ubuntu:18.04:LTS canonical derby All versions
Ubuntu:20.04:LTS canonical derby All versions
Ubuntu:22.04:LTS canonical derby All versions
Ubuntu:24.04:LTS canonical derby All versions
Ubuntu:25.10 canonical derby All versions
Ubuntu:26.04 canonical derby All versions
Root:Maven – org.apache.derby:derby < 10.16.1.1-aikido.3
Fix: upgrade to 10.16.1.1-aikido.3
Root:Maven – io.root.org.apache.derby:derby < 10.16.1.1-root.io.3
Fix: upgrade to 10.16.1.1-root.io.3
Original advisory text
CVE-2022-46337 in org.apache.derby:derby - Patched by Root
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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker full control
Severity
9.8 Critical
Exploitation
2% chance of attack within 30 days
Type
CWE-74Injection
CWE-94Code Injection
Timeline
Published20 Nov 2023
Updated4 Dec 2026
First seen6 Mar 2026
Track software like this
Free during beta