CVE-2022-23305: SQL injection in JDBC Appender in Apache Log4j V1
Vulnerability summary
CVE-2022-23305 is a critical (CVSS 9.8) vulnerability in apache software foundation apache log4j 1.x. EPSS estimates a 66.54% chance of exploitation in the next 30 days, higher than 99.2% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 67% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 31 · Related 12Timeline
- 18-01-2022PublishedVulnerability first disclosed.
- 27-05-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · MavenEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
66.54%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
No change 0.00 pp
From 66.54% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Oracle24 products
- advanced_supply_chain_planning12.1 | 12.2
- business_intelligence5.9.0.0.0 | 12.2.1.3.0 | 12.2.1.4.0
- business_process_management_suite12.2.1.3.0 | 12.2.1.4.0
- communications_eagle_ftp_table_base_retrieval4.5
- communications_instant_messaging_server10.0.1.5.0
Chainguard4 products
- druid< 35.0.1-r1 | All versions (No fix recorded)
- hadoop-fips-3.3.6All versions (No fix recorded)
- hadoop-fips-3.4.2All versions (No fix recorded)
- hadoop-fips-3.5All versions (No fix recorded)
Apache1 product
- log4j≥ 1.2, ≤ 1.2.17
Apache software foundation1 product
- apache log4j 1.x≥ 1.2.1, < unspecified | ≥ unspecified, < 2.0-alpha1
Broadcom1 product
Debian1 product
- apache-log4j1.2< 1.2.17-11
Log4j1 product
- log4j≤ 1.2.17
Netapp1 product
Org.zenframework.z8.dependencies.commons1 product
- log4j-1.2.17≤ 2.0
Qos1 product
- reload4j< 1.2.18.2
Ubuntu1 product
- apache-log4j1.2< 1.2.17-4ubuntu3+esm2 | < 1.2.17-7ubuntu1+esm1 | < 1.2.17-8+deb10u1ubuntu0.2 | < 1.2.17-9ubuntu0.2
Wolfi1 product
- druid< 35.0.1-r1 | All versions (No fix recorded)
12 vendors · 38 products
References
16 links- lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85yX Refsource MISCREPORTWEBIssue TrackingMailing ListVendor Advisory
- www.openwall.com/lists/oss-security/2022/01/18/4Mailing ListX Refsource MLISTARTICLEWEBThird Party Advisory