cve.bz

CVE-2022-46337 apache derby: Injection

9.8 criticalEPSS 1.9%Fix available

Critical (9.8) in apache derby. EPSS 1.9% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.derby:derby 10.14.2.1, 10.15.2.1, 10.16.1.2.

On this page
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.

Severity

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
EPSS
1.9% (up from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-06-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-46337 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-46337?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-46337?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-46337 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Derbyfrom 10.1.1.0 through 10.1.3.1
Apache Software Foundation Apache Derbyfrom 10.2.1.6 through 10.2.2.0
Apache Software Foundation Apache Derbyfrom 10.3.1.4 through 10.3.3.0
Apache Software Foundation Apache Derbyfrom 10.4.1.3 through 10.4.2.0
Apache Software Foundation Apache Derbyfrom 10.5.1.1 through 10.5.3.0
Apache Software Foundation Apache Derbyfrom 10.6.1.0 through 10.6.2.1
Apache Software Foundation Apache Derby10.7.1.1
Apache Software Foundation Apache Derbyfrom 10.8.1.2 through 10.8.3.0
Apache Software Foundation Apache Derby10.9.1.0
Apache Software Foundation Apache Derbyfrom 10.10.1.1 through 10.10.2.0
Apache Software Foundation Apache Derby10.11.1.1
Apache Software Foundation Apache Derby10.12.1.1
Apache Software Foundation Apache Derby10.13.1.1
Apache Software Foundation Apache Derby10.14.2.0
Apache Software Foundation Apache Derbyfrom 10.15.1.3 through 10.15.2.0
Apache Software Foundation Apache Derby10.16.1.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.1.1.0 <=10.1.3.1no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.2.1.6 <=10.2.2.0no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.3.1.4 <=10.3.3.0no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.4.1.3 <=10.4.2.0no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.5.1.1 <=10.5.3.0no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.6.1.0 <=10.6.2.1no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby10.7.1.1no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.8.1.2 <=10.8.3.0no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby10.9.1.0no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.10.1.1 <=10.10.2.0no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby10.11.1.1no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby10.12.1.1no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby10.13.1.1no fix published
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.14.2.0 <10.14.2.110.14.2.1
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.16.1.1 <10.16.1.210.16.1.2
GHSA-rcjc-c4pj-xxrpMavenorg.apache.derby:derby>=10.15.1.3 <10.15.2.110.15.2.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12derbyno fix listedDEBIAN-CVE-2022-46337
Debian13, 14derby10.14.2.0-3DEBIAN-CVE-2022-46337
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morederbyno fix listedUBUNTU-CVE-2022-46337

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON