PT-2022-7038 · Apache+9 · Log4J+9

Daniel Martin

·

Published

2022-01-10

·

Updated

2026-05-27

·

CVE-2022-23305

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Log4j versions 1.2.x
Description The issue is related to the JDBCAppender in Log4j, which accepts an SQL statement as a configuration parameter. This allows attackers to manipulate the SQL by entering crafted strings into input fields or headers of an application that are logged, enabling unintended SQL queries to be executed. The problem only affects Log4j 1.x when specifically configured to use the JDBCAppender. Apache Log4j 1.2 reached end of life in August 2015.
Recommendations For Log4j versions 1.2.x, upgrade to Log4j 2 as it addresses numerous other issues from the previous versions, including proper support for parameterized SQL queries and further customization over the columns written to in logs. As a temporary workaround, consider disabling the JDBCAppender until a patch is available or the upgrade to Log4j 2 is completed.

Exploit

Fix

SQL injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2022:0290
BDU:2023-07205
CESA-2022_0290
CESA-2022_0442
CVE-2022-23305
DLA-2905-1
GHSA-65FG-84F6-3JQ3
MGASA-2023-0141
OESA-2022-1781
OPENSUSE-SU-2022:0038-1
OPENSUSE-SU-2022:0214-1
OPENSUSE-SU-2022:0226-1
OPENSUSE-SU-2022_0040-1
OPENSUSE-SU-2022_0214-1
OPENSUSE-SU-2022_0226-1
OPENSUSE-SU-2024:11759-1
RHSA-2022:0289
RHSA-2022:0290
RHSA-2022:0291
RHSA-2022:0294
RHSA-2022:0436
RHSA-2022:0438
RHSA-2022:0439
RHSA-2022:0442
RHSA-2022:0447
RHSA-2022:0448
RHSA-2022:0475
RHSA-2022:0524
RHSA-2022:1296
RHSA-2022:1297
RHSA-2022:5459
RHSA-2022:5460
RHSA-2022_0290
RHSA-2022_0442
RHSA-2024:10207
RHSA-2024:5856
RLSA-2022:0290
ROSA-SA-2024-2519
SUSE-SU-2022:0212-1
SUSE-SU-2022:0214-1
SUSE-SU-2022:0226-1
SUSE-SU-2022:0354-1
SUSE-SU-2022:0355-1
SUSE-SU-2022:14881-1
USN-5998-1
USN-7590-1

Affected Products

Almalinux
Astra Linux
Centos
Jira
Linuxmint
Log4J
Red Hat
Rocky Linux
Suse
Ubuntu