9.8

CVE-2022-23305: SQL injection in JDBC Appender in Apache Log4j V1

Modified
AliasesUBUNTU-CVE-2022-23305DEBIAN-CVE-2022-23305CGA-5j7m-f92h-53qh
Published 18-01-2022Last modified 27-05-2026

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.

Priority
Prioritisesevere

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?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
66.54%
0%100%
Critical · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 31 · Related 12

Timeline

  1. 18-01-2022
    PublishedVulnerability first disclosed.
  2. 27-05-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Oracle24 products
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
Apache software foundation1 product
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
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
Show all 16 references