VDB

CVE-2022-23305

CVE-2022-23305 PUBLISHED CVSS 6.800000190734863 MEDIUM

SQL injection in JDBC Appender in Apache Log4j V1

Reported by apache · Published January 18, 2022

log4j is fixed in 1.2.17 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
log4j:log4jMaven Central1.2.17
org.zenframework.z8.dependencies.commons:log4j-1.2.17Maven Central2.0.0, 2.0
druidChainguard35.0.1-r1
log4j-manualAmazon Linux1.2.17-18.amzn2
log4j-javadocAmazon Linux1.2.17-18.amzn2
druidWolfi35.0.1-r1
log4jAmazon Linux1.2.17-18.amzn2
mysql_enterprise_monitororacle8.0.29
e-business_suite_information_discoveryoracle12.2.11
Apache Log4j 1.xApache Software Foundationunspecified, 2.0-alpha1
hyperion_data_relationship_managementoracle11.2.8.0
log4japache1.2.17

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 2.0
6.800000190734863

Affected products

VendorProductVersions
Apache Software FoundationApache Log4j 1.x1.2.1, unspecified
chainguarddruid0
Mavenlog4j:log4j0
Apache Software FoundationApache Log4j 1.x1.2.1, *
amazon:2log4j-manual0
amazon:2log4j-javadoc0
wolfidruid0
Mavenorg.zenframework.z8.dependencies.commons:log4j-1.2.170
amazon:2log4j0

Timeline

  • Jan 17, 2022 CVE Published
  • Feb 8, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 17, 2026 Security Advisory (56 in total, the first dated here)
  • Jul 5, 2026 Coalition ESS Score
  • Nov 18, 2026 PoC Published
  • Nov 21, 2026 Distribution Patch (51 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-23305
vulnetix vdb fixes CVE-2022-23305

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-23305/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›