home / blog

2026-11-19 · critical

CVE-2022-46337: Critical Derby LDAP Authentication Bypass

Critical vulnerability in Derby allows LDAP authentication bypass, data compromise and malicious code execution.

CVE-2022-46337: Critical Derby LDAP Authentication Bypass

CVE-2022-46337 is a critical vulnerability in Apache Derby that allows a malicious user to bypass LDAP authentication checks through a cleverly devised username. In LDAP-authenticated Derby installations, this vulnerability could allow an attacker to fill up the disk by creating junk Derby databases, execute malware that is visible and executable by the account which booted the Derby server, and in LDAP-protected databases that are not also protected by SQL GRANT/REVOKE authorization, view and corrupt sensitive data and run sensitive database functions and procedures.

The severity of this vulnerability has been classified as critical with a CVSS score of 9.8. The vulnerability was officially published in the National Vulnerability Database on November 20, 2023. There is a public exploit in GitHub repositories, indicating that the vulnerability is actively being exploited or ready for exploitation.

For defense, an immediate upgrade to Java 21 and Derby 10.17.1.0 is recommended. For those who wish to remain on older Java versions, it is possible to build their own Derby distribution from one of the release families to which the fix was backported: 10.16, 10.15, and 10.14, which correspond respectively to Java LTS versions 17, 11, and 8. It is also essential to implement additional security controls beyond LDAP authentication, such as SQL GRANT/REVOKE authorization.

At a glance

What
Vulnerability that allows bypassing LDAP authentication checks with a cleverly devised username
Severity
Critical (CVSS 9.8)
Affected versions
Derby versions prior to 10.17.1.0 (and corresponding Java versions)
Fix
Upgrade to Java 21 and Derby 10.17.1.0, or build own Derby distribution from release families 10.16, 10.15, or 10.14
Status
Published in NVD on 2023-11-20
Action
Apply official patches or implement recommended mitigations

Sources: NVD, CVE-2022-46337

← All articles