Injectionin Apache Derby.
Proof of concept public (GitHub).
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.
- Upgrade org.apache.derby:derby (Maven) to 10.14.2.1, 10.15.2.1, 10.16.1.2 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 29 Nov 2022CVE ID reserved by apache.
- 20 Nov 2023Published in the CVE List.
- 10 Jun 2025CVE record last updated.
- 19 Nov 2026First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Derby vulnerabilities
Same weakness: Injection
- lists.apache.org vendor-advisory
Patchminder. CVE-2022-46337: Injection in Apache Derby. https://patchminder.com/cve/cve-2022-46337/ (accessed 5 December 2026).