CVE-2022-23305
Also known as: GHSA-65fg-84f6-3jq3
EU Vulnerability Database: EUVD-2022-0477
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.
Severity
CVSS 3.x
9.8
- Exploitability
- 3.9
- Impact
- 5.9
- AV:N
- AC:L
- PR:N
- UI:N
- S:U
- C:H
- I:H
- A:H
CVSS 2.0
6.8
- Exploitability
- 8.6
- Impact
- 6.4
- AV:N
- AC:M
- Au:N
- C:P
- I:P
- A:P
Weakness Enumeration
Change History
Last Modified: Jun 17, 2026
Affected Packages
Maven log4j:log4j: >= 0, <= 1.2.17
Maven org.zenframework.z8.dependencies.commons:log4j-1.2.17: >= 0, <= 2.0
Known Affected Software Configurations
cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*
cpe:2.3:a:broadcom:brocade_sannav:-:*:*:*:*:*:*:*
cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:oracle:*:*
cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:sap:*:*
cpe:2.3:a:oracle:advanced_supply_chain_planning:12.1:*:*:*:*:*:*:*
cpe:2.3:a:oracle:advanced_supply_chain_planning:12.2:*:*:*:*:*:*:*
cpe:2.3:a:oracle:business_intelligence:12.2.1.3.0:*:*:*:enterprise:*:*:*
cpe:2.3:a:oracle:business_intelligence:12.2.1.4.0:*:*:*:enterprise:*:*:*
cpe:2.3:a:oracle:business_intelligence:5.9.0.0.0:*:*:*:enterprise:*:*:*
cpe:2.3:a:oracle:business_process_management_suite:12.2.1.3.0:*:*:*:*:*:*:*
References to Advisories, Solutions, and Tools
[security@apache.org] Mailing List, Third Party Advisory
[security@apache.org] Issue Tracking, Mailing List, Vendor Advisory
[security@apache.org] Vendor Advisory
[security@apache.org] Third Party Advisory
[security@apache.org] Patch, Third Party Advisory
[security@apache.org] Patch, Third Party Advisory
[af854a3a-2127-422b-91ae-364da2661108] Mailing List, Third Party Advisory
[af854a3a-2127-422b-91ae-364da2661108] Issue Tracking, Mailing List, Vendor Advisory