CVE-2022-23305
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.
Published Updated Sources: cvelistV5, apache
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Public exploit
exploit code published, no use observed
EPSS
67%
chance of exploitation in 30 days
CVSS base
9.8
CRITICAL
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | CRITICAL | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-89
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
Indexed by
References
6 on the record
- logging.apache.org/log4j/1.2/index.html
x_refsource_MISC
- lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
x_refsource_MISC
- www.openwall.com/lists/oss-security/2022/01/18/4
mailing-list, x_refsource_MLIST
- www.oracle.com/security-alerts/cpuapr2022.html
x_refsource_MISC
- security.netapp.com/advisory/ntap-20220217-0007/
x_refsource_CONFIRM
- www.oracle.com/security-alerts/cpujul2022.html
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-72898 Metabase SQL injection via password reset endpointCVSS 10.0 · CISA KEV
- CVE-2026-114625 Security Advisory 0199CVSS 9.9 · CISA KEV
- CVE-2026-76461 Cisco Secure Email Gateway SQL Injection VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-42208 LiteLLM: SQL injection in Proxy API key verificationCVSS 9.8 · CISA KEV
- CVE-2026-21643 Fortinet FortiClient EMS SQL Injection VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-9586 Unauthenticated SQL Injection Leading to Remote Code Execution in Switchvox SMBCVSS 9.8 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.