CVEfocus › CVE database › CVE-2022-46337

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

CVSS 9.8 CriticalEPSS 1.9% (higher than 80% of CVEs)Published 2023-11-20Updated 2025-06-10Assigner: apache

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.

CWE-74

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

3Fixed
2Fix pending
3Under investigation
5Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10derbyFix pendingUBUNTU-CVE-2022-46337
Ubuntu 26.04derbyUnder investigationUBUNTU-CVE-2022-46337
Ubuntu 25.10derbyWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-46337
Ubuntu 24.04derbyUnder investigationUBUNTU-CVE-2022-46337
Ubuntu 22.04derbyUnder investigationUBUNTU-CVE-2022-46337
Ubuntu 20.04derbyWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-46337
Ubuntu 18.04derbyWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-46337
Ubuntu 16.04derbyWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-46337
Ubuntu 14.04derbyWill not fix
Ubuntu decided not to fix this in this release
Debian 14derbyFixed10.14.2.0-3DEBIAN-CVE-2022-46337
Debian 13derbyFixed10.14.2.0-3DEBIAN-CVE-2022-46337
Debian 12derbyFix pendingDEBIAN-CVE-2022-46337
Maven libraryorg.apache.derby:derbyFixed10.15.2.1GHSA-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.

Vendor advisories:

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.