CVE-2022-23305

SQL injection in JDBC Appender in Apache Log4j V1

Published Jan 18, 2022 CVSS 3.1 · 9.8 Critical EPSS 66.5% KEV · Not listed
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.

Remediation

Vendor Workaround

Users should upgrade to Log4j 2 or remove usage of the JDBCAppender from their configurations.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2905-1 apache-log4j1.2 security update
Github GHSA Github GHSA GHSA-65fg-84f6-3jq3 SQL Injection in Log4j 1.2.x
Ubuntu USN Ubuntu USN USN-5998-1 Apache Log4j vulnerabilities
Ubuntu USN Ubuntu USN USN-7590-1 Apache Log4j vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics epss

{'score': 0.14404}

epss

{'score': 0.14411}

Type Values Removed Values Added
Metrics epss

{'score': 0.14411}

epss

{'score': 0.14404}

Type Values Removed Values Added
Metrics epss

{'score': 0.14997}

epss

{'score': 0.14411}

Type Values Removed Values Added
CPEs cpe:/a:redhat:jboss_enterprise_application_platform_eus:7.3::el7
Type Values Removed Values Added
First Time appeared Redhat jboss Enterprise Application Platform Eus
CPEs cpe:/a:redhat:jboss_enterprise_application_platform_eus:7.1::el7
Vendors & Products Redhat jboss Enterprise Application Platform Eus

Subscriptions

Apache Log4j
Broadcom Brocade Sannav
Netapp Snapmanager
Oracle Advanced Supply Chain Planning Business Intelligence Business Process Management Suite Communications Eagle Ftp Table Base Retrieval Communications Instant Messaging Server Communications Messaging Server Communications Network Integrity Communications Offline Mediation Controller Communications Unified Inventory Management E-business Suite Cloud Manager And Cloud Backup Module E-business Suite Information Discovery Enterprise Manager Base Platform Financial Services Revenue Management And Billing Analytics Healthcare Foundation Hyperion Data Relationship Management Hyperion Infrastructure Technology Identity Management Suite Identity Manager Connector Jdeveloper Middleware Common Libraries And Tools Mysql Enterprise Monitor Retail Extract Transform And Load Tuxedo Weblogic Server
Qos Reload4j
Redhat Amq Streams Enterprise Linux Jboss Amq Jboss Data Grid Jboss Data Virtualization Jboss Enterprise Application Platform Jboss Enterprise Application Platform Eus Jboss Enterprise Web Server Jboss Fuse Red Hat Single Sign On Rhel Aus Rhel E4s Rhel Els Rhel Eus Rhel Software Collections Rhel Tus Rhev Manager Rhosemc
Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
May 27, 2026, 1:40 PM
Reserved
Jan 17, 2022, 12:00 AM
Status
Modified
Published
Jan 18, 2022, 4:15 PM
Modified
Jun 17, 2026, 4:29 AM
Severity
Important
Public date
Jan 18, 2022, 12:00 AM