CVE-2022-46337Apache 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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | derby | Fix pending | UBUNTU-CVE-2022-46337 | |
| Ubuntu 26.04 | derby | Under investigation | UBUNTU-CVE-2022-46337 | |
| Ubuntu 25.10 | derby | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-46337 | |
| Ubuntu 24.04 | derby | Under investigation | UBUNTU-CVE-2022-46337 | |
| Ubuntu 22.04 | derby | Under investigation | UBUNTU-CVE-2022-46337 | |
| Ubuntu 20.04 | derby | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-46337 | |
| Ubuntu 18.04 | derby | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-46337 | |
| Ubuntu 16.04 | derby | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-46337 | |
| Ubuntu 14.04 | derby | Will not fix Ubuntu decided not to fix this in this release | ||
| Debian 14 | derby | Fixed | 10.14.2.0-3 | DEBIAN-CVE-2022-46337 |
| Debian 13 | derby | Fixed | 10.14.2.0-3 | DEBIAN-CVE-2022-46337 |
| Debian 12 | derby | Fix pending | DEBIAN-CVE-2022-46337 | |
| Maven library | org.apache.derby:derby | Fixed | 10.15.2.1 | GHSA-rcjc-c4pj-xxrp |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Derby: affected: 10.1.1.0 to 10.1.3.1, 10.2.1.6 to 10.2.2.0, 10.3.1.4 to 10.3.3.0, 10.4.1.3 to 10.4.2.0, 10.5.1.1 to 10.5.3.0, 10.6.1.0 to 10.6.2.1
Vendor advisories:
- https://lists.apache.org/thread/q23kvvtoohgzwybxpwozmvvk17rp0td3 (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.