Exploit database

Vulnerability

CVE-2022-23305

SQL injection in JDBC Appender in Apache Log4j V1

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

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

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.

CVE Program

Exploit source choices

7 sources
apache/logging-log4j1
GH-edb799cba26110c48e5725783fbd9b79GitHubUnofficial GitHub sourcePreferred

Apache log4j1

2009-05-21681 files · 868 stars
logpresso/cve-2021-44228-scanner
GH-f14310a5f8f44da4b48497a38324b3f7GitHubUnofficial GitHub source

Vulnerability scanner and mitigation patch for Log4j2 CVE-2021-44228

2021-12-1153 files · 866 stars
averemee-si/oracdc
GH-d41535d0796dd40bac44458cb8d720f8GitHubUnofficial GitHub source

ORAcle database CDC (Change Data Capture)

2019-09-26350 files · 132 stars
hynekpetrak/log4shell-finder
GH-4f9ccfd274dd746973d20437a95b5e43GitHubUnofficial GitHub source

Fastest filesystem scanner for log4shell (CVE-2021-44228, CVE-2021-45046) and other vulnerable (CVE-2017-5645, CVE-2019-17571, CVE-2022-23305, CVE-2022-23307 ... ) instances of log4j library. Excellent performance and low memory footprint.

2021-12-149 files · 39 stars
tkomlodi/cve-2022-23305_poc
GH-9dc5b7b716a673b8482b61af22638f40GitHubUnofficial GitHub source

CVE-2022-23305 Log4J JDBCAppender SQl injection POC

2023-07-248 files · 1 stars
cyborgx0x/user-agent-analyze
GH-31504798b4f56f682c9fa6fe436b11b5GitHubUnofficial GitHub source

cyborgx0x/user-agent-analyze source repository

2025-06-114 files · 0 stars