CVE-2022-23305
Summary
| CVE | CVE-2022-23305 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-01-18 16:15:00 UTC |
| Updated | 2023-02-24 15:30:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-89
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Oracle Critical Patch Update Advisory - April 2022 | MISC | www.oracle.com | |
| oss-security - CVE-2022-23305: SQL injection in JDBC Appender in Apache Log4j V1 | MLIST | www.openwall.com | |
| CVE-2022-23305 Apache Log4j Vulnerability in NetApp Products | NetApp Product Security | CONFIRM | security.netapp.com | |
| Apache log4j 1.2 - | MISC | logging.apache.org | |
| lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y | MISC | lists.apache.org | |
| Oracle Critical Patch Update Advisory - July 2022 | N/A | www.oracle.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
LEGACY: Daniel Martin of NCC Group
Legacy QID Mappings
- 150538 Oracle WebLogic Server Multiple Vulnerabilities (CPUAPR2022)
- 159603 Oracle Enterprise Linux Security Update for parfait:0.5 (ELSA-2022-0290)
- 159628 Oracle Enterprise Linux Security Update for log4j (ELSA-2022-0442)
- 159853 Oracle Enterprise Linux Security Update for log4j (ELSA-2022-9419)
- 179047 Debian Security Update for apache-log4j1.2 (DLA 2905-1)
- 179238 Debian Security Update for apache-log4j1.2 (CVE-2022-23305)
- 199275 Ubuntu Security Notification for Apache Log4j Vulnerabilities (USN-5998-1)
- 240034 Red Hat Update for parfait:0.5 (RHSA-2022:0289)
- 240035 Red Hat Update for parfait:0.5 (RHSA-2022:0290)
- 240036 Red Hat Update for parfait:0.5 (RHSA-2022:0291)
- 240059 Red Hat Update for JBoss Enterprise Application Platform 7.4 (RHSA-2022:0436)
- 240060 Red Hat Update for JBoss Enterprise Application Platform 6.4 (RHSA-2022:0438)
- 240062 Red Hat Update for rh-maven36-log4j12 (RHSA-2022:0439)
- 240067 Red Hat Update for log4j (RHSA-2022:0442)
- 240078 Red Hat Update for red hat jboss web server 3.1 service pack 14 (RHSA-2022:0524)
- 240209 Red Hat Update for JBoss Enterprise Application Platform 7.4.4 (RHSA-2022:1296)
- 240210 Red Hat Update for JBoss Enterprise Application Platform 7.4.4 (RHSA-2022:1297)
- 240452 Red Hat Update for parfait:0.5 (RHSA-2022:0294)
- 240508 Red Hat Update for JBoss Enterprise Application Platform 6.4.2 (RHSA-2022:5459)
- 240511 Red Hat Update for JBoss Enterprise Application Platform 6.4.2 (RHSA-2022:5460)
- 257151 CentOS Security Update for log4j (CESA-2022:0442)
- 353173 Amazon Linux Security Advisory for log4j : ALAS2-2022-1750
- 354858 Amazon Linux Security Advisory for log4j : ALAS-2023-1718
- 355080 Amazon Linux Security Advisory for log4j : AL2012-2023-404
- 376438 IBM WebSphere Application Server Arbitrary Code Execution Vulnerability (Log4Shell) (6557248)
- 376639 IBM Integration Bus and IBM App Connect Enterprise Apache Log4j Vulnerabilities (6568731)
- 377086 Alibaba Cloud Linux Security Update for log4j (ALINUX2-SA-2022:0010)
- 377147 Alibaba Cloud Linux Security Update for parfait:0.5 (ALINUX3-SA-2022:0006)
- 377908 Oracle Coherence January 2023 Critical Patch Update (CPUJAN2023)
- 671400 EulerOS Security Update for log4j (EulerOS-SA-2022-1330)
- 671679 EulerOS Security Update for log4j (EulerOS-SA-2022-1744)
- 730542 Atlassian Confluence Server and Confluence Data Center Log4j Multiple Vulnerabilities (CONFSERVER-78991)
- 730566 Atlassian Jira Server and Data Center Log4j Vulnerability (JRASERVER-73885)
- 731338 Atlassian Bamboo Server and Data Center Multiple Security Vulnerabilities (BAM-21696, BAM-21697)
- 751667 SUSE Enterprise Linux Security Update for log4j (SUSE-SU-2022:0212-1)
- 751669 SUSE Enterprise Linux Security Update for log4j (SUSE-SU-2022:0214-1)
- 751670 OpenSUSE Security Update for log4j (openSUSE-SU-2022:0214-1)
- 751672 SUSE Enterprise Linux Security Update for log4j12 (SUSE-SU-2022:0226-1)
- 751673 OpenSUSE Security Update for log4j12 (openSUSE-SU-2022:0226-1)
- 753187 SUSE Enterprise Linux Security Update for log4j (SUSE-SU-2022:14881-1)
- 87489 Oracle WebLogic Server Multiple Vulnerabilities (CPUAPR2022)
- 940440 AlmaLinux Security Update for parfait:0.5 (ALSA-2022:0290)
- 960689 Rocky Linux Security Update for parfait:0.5 (RLSA-2022:0290)