Skip to content
Emerging threatsCritical

CVE-2022-23305Log4j SQL Injection

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.

Published Jan 18, 2022 · Updated Nov 24, 2026 · Also known as CGA-55vm-588p-3r8h, CGA-5j7m-f92h-53qh, CGA-6v3w-9r6j-34xp, CGA-828q-68j6-9fx6, CGA-c3gh-92jj-vmmp, CGA-cfhr-g5qg-9g7x, CGA-cq7g-5v99-xrp6, CGA-fmc4-m9w5-pcrp, CGA-h62x-352x-wprw, CGA-vx54-5wrw-q8hq, CGA-w37c-6v44-mxgq, CGA-xqwh-ch26-cqw9, CLEANSTART-2026-CB62266, CLSA-2022-1643918279, CLSA-2022-1643918500, CLSA-2026-1793137942, DEBIAN-CVE-2022-23305, ECHO-5c54-5d09-2655, GHSA-65fg-84f6-3jq3, MINI-qh3w-mgq7-3w78, MINI-whvf-f34m-rjgr, OESA-2022-1781, ROOT-APP-MAVEN-CVE-2022-23305, UBUNTU-CVE-2022-23305

Key Facts

Patch immediately
  • CVE-2022-23305 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Log4j (Apache), Brocade Sannav (Broadcom), Snapmanager (Netapp) and 22 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 67% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Log4j <=1.2.17, Log4j 0:1.2.14-6.6.el6_10, Log4j 0:1.2.17-18.el7_4.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

67%

Higher than 99.3% of all scored CVEs

Exploit maturity

None known

ATLAS score

35/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

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.

Affected Products

668 affected entries in total
ProductAffected versionsFixed in
Log4jApacheSee advisory1.2.17
Brocade SannavBroadcomSee advisoryn/a
SnapmanagerNetappSee advisoryn/a
Advanced Supply Chain PlanningOracle12.1, 12.2n/a
Business IntelligenceOracle12.2.1.3.0, 12.2.1.4.0, 5.9.0.0.0n/a
20 more affected products in the full CVE brief

Patched Releases

Log4j

<=1.2.17, 0:1.2.14-6.6.el6_10, 0:1.2.17-18.el7_4, 1.2.14-6.4.2.el6_10, 1.2.14-6.4.el6.tuxcare.els2, 1.2.15-126.9.1, 1.2.15-26.32.20.1, 1.2.17-16.14.amzn1, 1.2.17-18.amzn2, 1.2.17-18.el7_4, 1.2.17-5.9.1

Apache Log4j 1.x

2.0-alpha1, unspecified

apache-hive

3.1.3-r1

apache-log4j1.2

1.2.17-10+deb11u1, 1.2.17-11, 1.2.17-4ubuntu3+esm2, 1.2.17-7+deb9u2, 1.2.17-7ubuntu1+esm1, 1.2.17-8+deb10u1ubuntu0.2, 1.2.17-9ubuntu0.2

davmail

6.1.0-1.mga8

druid

35.0.1-r1

eap7-apache-cxf

0:3.4.10-1.SP1_redhat_00001.1.el7eap

eap7-avro

0:1.7.6-8.redhat_00003.1.el7eap

eap7-h2database

0:1.4.197-3.redhat_00004.1.el7eap

eap7-jboss-annotations-api_1.3_spec

0:2.0.1-4.Final_redhat_00001.1.el7eap

eap7-jboss-marshalling

0:2.0.15-1.Final_redhat_00001.1.el7eap

eap7-jboss-server-migration

0:1.7.2-12.Final_redhat_00013.1.el7eap

eap7-jboss-xnio-base

0:3.7.13-1.Final_redhat_00001.1.el7eap

eap7-log4j

0:2.17.1-1.redhat_00001.1.el7eap, 0:2.17.1-1.redhat_00001.1.el8eap

eap7-log4j-jboss-logmanager

0:1.2.2-1.Final_redhat_00002.1.el8eap, 0:1.2.2-1.Final_redhat_00002.1.ep7.el7

eap7-wildfly

0:7.3.11-4.GA_redhat_00002.1.el7eap

eap7-wss4j

0:2.3.3-2.redhat_00001.1.el7eap

eap7-xalan-j2

0:2.7.1-38.redhat_00015.1.el7eap

eap7-xml-security

0:2.2.3-2.redhat_00001.1.el7eap

elasticsearch

2.4.2-5.6.1, 2.4.2-6.6.1

io.root.log4j:log4j

1.2.12-root.io.1, 1.2.12-root.io.2, 1.2.14-root.io.4, 1.2.14-root.io.5, 1.2.14-root.io.6

jboss-as-appclient

0:7.5.24-2.Final_redhat_00001.1.ep6.el6, 0:7.5.24-2.Final_redhat_00001.1.ep6.el7

jboss-as-cli

0:7.5.24-2.Final_redhat_00001.1.ep6.el6, 0:7.5.24-2.Final_redhat_00001.1.ep6.el7

jboss-as-client-all

0:7.5.24-2.Final_redhat_00001.1.ep6.el6, 0:7.5.24-2.Final_redhat_00001.1.ep6.el7

jboss-as-clustering

0:7.5.24-2.Final_redhat_00001.1.ep6.el6, 0:7.5.24-2.Final_redhat_00001.1.ep6.el7

Timeline

  1. Publicly disclosed

    Jan 18, 2022

  2. Last updated

    Nov 24, 2026

Weakness Type

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2022-23305 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.