patchminder
Proof of concept · GitHub CVE-2022-46337

Injectionin Apache Derby.

Published 20 Nov 2023 · Updated 10 Jun 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 2.0% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 10.14.2.1, 10.15.2.1, 10.16.1.2
In plain words

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.

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache Derby
10.1.1.0 to 10.1.3.1
Not confirmed
CVE record
Apache Derby
10.2.1.6 to 10.2.2.0
Not confirmed
CVE record
Apache Derby
10.3.1.4 to 10.3.3.0
Not confirmed
CVE record
Apache Derby
10.4.1.3 to 10.4.2.0
Not confirmed
CVE record
Apache Derby
10.5.1.1 to 10.5.3.0
Not confirmed
CVE record
Apache Derby
10.6.1.0 to 10.6.2.1
Not confirmed
CVE record
Apache Derby
10.7.1.1
Not confirmed
CVE record
Apache Derby
10.8.1.2 to 10.8.3.0
Not confirmed
CVE record
Apache Derby
10.9.1.0
Not confirmed
CVE record
Apache Derby
10.10.1.1 to 10.10.2.0
Not confirmed
CVE record
Apache Derby
10.11.1.1
Not confirmed
CVE record
Apache Derby
10.12.1.1
Not confirmed
CVE record
Apache Derby
10.13.1.1
Not confirmed
CVE record
Apache Derby
10.14.2.0
Not confirmed
CVE record
Apache Derby
10.15.1.3 to 10.15.2.0
Not confirmed
CVE record
Apache Derby
10.16.1.1
Not confirmed
CVE record
org.apache.derby:derby (Maven)
10.1.1.0 to 10.1.3.1
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.2.1.6 to 10.2.2.0
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.3.1.4 to 10.3.3.0
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.4.1.3 to 10.4.2.0
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.5.1.1 to 10.5.3.0
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.6.1.0 to 10.6.2.1
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.7.1.1
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.8.1.2 to 10.8.3.0
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.9.1.0
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.10.1.1 to 10.10.2.0
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.11.1.1
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.12.1.1
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.13.1.1
Not confirmed
GitHub advisory
org.apache.derby:derby (Maven)
10.14.2.0 to before 10.14.2.1
10.14.2.1
GitHub advisory
org.apache.derby:derby (Maven)
10.16.1.1 to before 10.16.1.2
10.16.1.2
GitHub advisory
org.apache.derby:derby (Maven)
10.15.1.3 to before 10.15.2.1
10.15.2.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 29 Nov 2022
    CVE ID reserved by apache.
  2. 20 Nov 2023
    Published in the CVE List.
  3. 10 Jun 2025
    CVE record last updated.
  4. 19 Nov 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundintersoftdatalabs-in/derby0 stars · created 19 Nov 2026Intersoft Java 8 LTS build of Apache Derby 10.14.2.1 from Apache SVN branches/10.14 (DERBY-7147 / CVE-2022-46337)

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.

Related

Other Derby vulnerabilities

Same weakness: Injection

All CWE-74 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-46337: Injection in Apache Derby. https://patchminder.com/cve/cve-2022-46337/ (accessed 5 December 2026).