CVE-2022-23305
Published on: 01/18/2022 12:00:00 AM UTC
Last Modified on: 04/20/2022 12:16:00 AM UTC
Certain versions of Log4j from Apache contain the following vulnerability:
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-2022-23305 has been assigned by
[email protected] to track the vulnerability - currently rated as CRITICAL severity.
- Affected Vendor/Software:
Apache Software Foundation - Apache Log4j 1.x version >= 1.2.1
- Affected Vendor/Software:
Apache Software Foundation - Apache Log4j 1.x version < 2.0-alpha1
- Users should upgrade to Log4j 2 or remove usage of the JDBCAppender from their configurations.
CVSS3 Score: 9.8 - CRITICAL
Attack Vector ⓘ |
Attack Complexity |
Privileges Required |
User Interaction |
---|---|---|---|
NETWORK | LOW | NONE | NONE |
Scope | Confidentiality Impact |
Integrity Impact |
Availability Impact |
UNCHANGED | HIGH | HIGH | HIGH |
CVSS2 Score: 6.8 - MEDIUM
Access Vector ⓘ |
Access Complexity |
Authentication |
---|---|---|
NETWORK | MEDIUM | NONE |
Confidentiality Impact |
Integrity Impact |
Availability Impact |
PARTIAL | PARTIAL | PARTIAL |
CVE References
Description | Tags ⓘ | Link |
---|---|---|
Oracle Critical Patch Update Advisory - April 2022 | www.oracle.com text/html |
![]() |
oss-security - CVE-2022-23305: SQL injection in JDBC Appender in Apache Log4j V1 | www.openwall.com text/html |
![]() |
CVE-2022-23305 Apache Log4j Vulnerability in NetApp Products | NetApp Product Security | security.netapp.com text/html |
![]() |
Apache log4j 1.2 - | logging.apache.org text/html |
![]() |
No Description Provided | lists.apache.org text/html |
![]() |
Related QID Numbers
- 159603 Oracle Enterprise Linux Security Update for parfait:0.5 (ELSA-2022-0290)
- 159628 Oracle Enterprise Linux Security Update for log4j (ELSA-2022-0442)
- 179047 Debian Security Update for apache-log4j1.2 (DLA 2905-1)
- 179238 Debian Security Update for apache-log4j1.2 (CVE-2022-23305)
- 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)
- 257151 CentOS Security Update for log4j (CESA-2022:0442)
- 353173 Amazon Linux Security Advisory for log4j : ALAS2-2022-1750
- 376438 IBM WebSphere Application Server Arbitrary Code Execution Vulnerability (Log4Shell) (6557248)
- 671400 EulerOS Security Update for log4j (EulerOS-SA-2022-1330)
- 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)
- 87489 Oracle WebLogic Server Multiple Vulnerabilities (CPUAPR2022)
- 940440 AlmaLinux Security Update for parfait:0.5 (ALSA-2022:0290)
Exploit/POC from Github
test 反向辣鸡数据投放 CVE-2022-23305 工具 利用 教程 Exploit POC
Known Affected Configurations (CPE V2.3)
Type | Vendor | Product | Version | Update | Edition | Language |
---|---|---|---|---|---|---|
Application | Apache | Log4j | All | All | All | All |
Application | Broadcom | Brocade Sannav | - | All | All | All |
Application | Netapp | Snapmanager | - | All | All | All |
Application | Netapp | Snapmanager | - | All | All | All |
Application | Qos | Reload4j | All | All | All | All |
- cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*:
- cpe:2.3:a:broadcom:brocade_sannav:-:*:*:*:*:*:*:*:
- cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:oracle:*:*:
- cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:sap:*:*:
- cpe:2.3:a:qos:reload4j:*:*:*:*:*:*:*:*:
Discovery Credit
Daniel Martin of NCC Group
Social Mentions
Source | Title | Posted (UTC) |
---|---|---|
![]() |
CVE-2022-23305 : By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter w… twitter.com/i/web/status/1… | 2022-01-18 15:38:11 |
![]() |
CVE-2022-23305 | 2022-01-18 16:38:39 |
![]() |
New Log4j 1.2x vulnerabilities | 2022-01-21 14:49:06 |