Home / Apache Software Foundation / Apache Log4j 1.x / CVE-2022-23305
CVE-2022-23305: is it exploited, and which versions of Apache Software Foundation Apache Log4j 1.x are affected and fixed?
CVE-2022-23305 is a SQL injection vulnerability in Apache Software Foundation Apache Log4j 1.x. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: log4j:log4j through 1.2.17 and org.zenframework.z8.dependencies.commons:log4j-1.2.17 through 2.0 (GitHub advisory GHSA-65fg-84f6-3jq3). Fixed in unspecified and 2.0-alpha1 (CVE record by apache). Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 28, 2026, 19:48 UTC and NVD November 19, 2026, 07:51 UTC.
What is CVE-2022-23305?
SQL injection in JDBC Appender in Apache Log4j V1
By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter where the values to be inserted are converters from PatternLayout. The message converter, %m, is likely to always be included. This allows attackers to manipulate the SQL by entering crafted strings into input fields or headers of an application that are logged allowing unintended SQL queries to be executed. Note this issue only affects Log4j 1.x when specifically configured to use the JDBCAppender, which is not the default. Beginning in version 2.0-beta8, the JDBCAppender was re-introduced with proper support for parameterized SQL queries and further customization over the columns written to in logs. Apache Log4j 1.2 reached end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions.
From the CVE record by apache, last updated May 27, 2026, 13:40 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Log4j 1.x | from 1.2.1 before unspecified before 2.0-alpha1 | unspecified, 2.0-alpha1 |
As the CVE record by apache states it, last updated May 27, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | log4j:log4j | <= 1.2.17 | none listed | GHSA-65fg-84f6-3jq3 |
| Maven | org.zenframework.z8.dependencies.commons:log4j-1.2.17 | <= 2.0 | none listed | GHSA-65fg-84f6-3jq3 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 8, 2026. Summary: SQL Injection in Log4j 1.2.x.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | log4j | from 1.2 through 1.2.17 | application |
| netapp | snapmanager | all versions | application |
| broadcom | brocade sannav | all versions | application |
| qos | reload4j | before 1.2.18.2 | application |
| oracle | advanced supply chain planning | 12.1 | application |
| oracle | advanced supply chain planning | 12.2 | application |
| oracle | business intelligence | 5.9.0.0.0 | application |
| oracle | business intelligence | 12.2.1.3.0 | application |
| oracle | business intelligence | 12.2.1.4.0 | application |
| oracle | business process management suite | 12.2.1.3.0 | application |
| oracle | business process management suite | 12.2.1.4.0 | application |
| oracle | communications eagle ftp table base retrieval | 4.5 | application |
| oracle | communications instant messaging server | 10.0.1.5.0 | application |
| oracle | communications messaging server | 8.1 | application |
| oracle | communications network integrity | 7.3.6 | application |
| oracle | communications offline mediation controller | before 12.0.0.4.4 | application |
| oracle | communications offline mediation controller | 12.0.0.5.0 | application |
| oracle | communications unified inventory management | 7.4.1 | application |
| oracle | communications unified inventory management | 7.4.2 | application |
| oracle | e-business suite cloud manager and cloud backup module | before 2.2.1.1.1 | application |
| oracle | e-business suite cloud manager and cloud backup module | 2.2.1.1.1 | application |
| oracle | e-business suite information discovery | from 12.2.3 through 12.2.11 | application |
| oracle | enterprise manager base platform | 13.4.0.0 | application |
| oracle | enterprise manager base platform | 13.5.0.0 | application |
| oracle | financial services revenue management and billing analytics | 2.7.0.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:29 UTC.
How severe is CVE-2022-23305?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-23305 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, May 22, 2026)
- EPSS
- 66.5% probability of exploitation activity in the next 30 days, percentile 99.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Is there a workaround? (from the CVE record)
Users should upgrade to Log4j 2 or remove usage of the JDBCAppender from their configurations.
Where are the vendor advisories and references?
- https://logging.apache.org/log4j/1.2/index.html x_refsource_MISC
- https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y x_refsource_MISC
- [oss-security] 20220118 CVE-2022-23305: SQL injection in JDBC Appender in Apache Log4j V1 mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220217-0007/ x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
Who found and reported it?
- Daniel Martin of NCC Group (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 17, 2022
- Published
- January 18, 2022, 15:25 UTC
- CVE record updated
- May 27, 2026, 13:40 UTC by apache
- NVD
- Modified, last modified June 17, 2026, 04:29 UTC
- Last checked
- CVE list November 28, 2026, 19:48 UTC; NVD November 19, 2026, 07:51 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Log4j 1.x?
- Jan 18, 2022CVE-2022-23307 Apache Software Foundation Apache Log4j 1.x: deserialization of untrusted data
- Jan 18, 2022CVE-2022-23302 Apache Software Foundation Apache Log4j 1.x: deserialization of untrusted data
- Dec 14, 2021CVE-2021-4104 Apache Software Foundation Apache Log4j 1.x: deserialization of untrusted data
Questions about CVE-2022-23305
Is CVE-2022-23305 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 66.5% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Log4j 1.x are affected by CVE-2022-23305?
log4j:log4j through 1.2.17 and org.zenframework.z8.dependencies.commons:log4j-1.2.17 through 2.0, per the GitHub advisory GHSA-65fg-84f6-3jq3. The tables above give every range the sources list.
Which version fixes CVE-2022-23305?
unspecified and 2.0-alpha1, per the CVE record by apache. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-23305?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2022-23305?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.