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.
Published: 2022-01-18
Score: 9.8 Critical
EPSS: 8.0% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

No analysis available yet.

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

Wed, 16 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.14404}

epss

{'score': 0.14411}


Tue, 15 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.14411}

epss

{'score': 0.14404}


Mon, 14 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.14997}

epss

{'score': 0.14411}


Mon, 25 Nov 2024 14:30:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:jboss_enterprise_application_platform_eus:7.3::el7

Mon, 26 Aug 2024 18:45:00 +0000

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
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2024-08-03T03:36:20.421Z

Reserved: 2022-01-17T00:00:00.000Z

Link: CVE-2022-23305

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2022-01-18T16:15:08.350

Modified: 2024-11-21T06:48:22.517

Link: CVE-2022-23305

cve-icon Redhat

Severity : Important

Publid Date: 2022-01-18T00:00:00Z

Links: CVE-2022-23305 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses