# CVE-2022-46337: Apache Derby: LDAP injection vulnerability in authenticator

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.96%, higher than 80% of CVEs (2026-12-02)
- Published: 2023-11-20T08:49:38.619Z
- Modified: 2026-09-10T03:49:48.215Z
- Also known as: GHSA-rcjc-c4pj-xxrp
- Weaknesses: CWE-74, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

## Description

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.

(As written by CVE List.)

## Affected

- org.apache.derby: from 10.1.1.0 up to 10.1.3.1; from 10.2.1.6 up to 10.2.2.0; from 10.3.1.4 up to 10.3.3.0; from 10.4.1.3 up to 10.4.2.0; from 10.5.1.1 up to 10.5.3.0; from 10.6.1.0 up to 10.6.2.1; 10.7.1.1; from 10.8.1.2 up to 10.8.3.0; 10.9.1.0; from 10.10.1.1 up to 10.10.2.0; 10.11.1.1; 10.12.1.1; and 4 more
- org.apache.derby:derby (Maven): from 10.1.1.0 up to 10.1.3.1; from 10.2.1.6 up to 10.2.2.0; from 10.3.1.4 up to 10.3.3.0; from 10.4.1.3 up to 10.4.2.0; from 10.5.1.1 up to 10.5.3.0; from 10.6.1.0 up to 10.6.2.1; 10.7.1.1; from 10.8.1.2 up to 10.8.3.0; 10.9.1.0; from 10.10.1.1 up to 10.10.2.0; 10.11.1.1; 10.12.1.1; and 4 more
- apache derby: from 10.1.1.0 before 10.14.3.0; from 10.15.1.3 before 10.15.2.1; 10.16.1.1

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://lists.apache.org/thread/q23kvvtoohgzwybxpwozmvvk17rp0td3> (mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-46337> (advisory)
- <https://github.com/apache/derby> (package)
- <https://issues.apache.org/jira/browse/DERBY-7147> (web)

## Sources

- CVE List: [CVE-2022-46337](https://www.cve.org/CVERecord?id=CVE-2022-46337), CVE Terms of Use, modified 2025-06-10
- GitHub Advisory Database: [GHSA-rcjc-c4pj-xxrp](https://github.com/advisories/GHSA-rcjc-c4pj-xxrp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-46337](https://nvd.nist.gov/vuln/detail/CVE-2022-46337), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-46337 · Whole record: https://cve.day/CVE-2022-46337.json · Rebuilt by cve.day 2026-11-25T22:58:19.686Z
