CVE-2022-23305
Published on: 01/18/2022 12:00:00 AM UTC
Last Modified on: 02/24/2023 03:30:00 PM 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 |
![]() |
Oracle Critical Patch Update Advisory - July 2022 | www.oracle.com text/html |
![]() |
Related QID Numbers
- 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)
- 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
- 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)
- 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)
Exploit/POC from Github
test 反向辣鸡数据投放 CVE-2022-23305 工具 利用 教程 Exploit POC
Known Affected Configurations (CPE V2.3)
- 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:oracle:advanced_supply_chain_planning:12.1:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:advanced_supply_chain_planning:12.2:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:business_intelligence:12.2.1.3.0:*:*:*:enterprise:*:*:*:
- cpe:2.3:a:oracle:business_intelligence:12.2.1.4.0:*:*:*:enterprise:*:*:*:
- cpe:2.3:a:oracle:business_intelligence:5.9.0.0.0:*:*:*:enterprise:*:*:*:
- cpe:2.3:a:oracle:business_process_management_suite:12.2.1.3.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:business_process_management_suite:12.2.1.4.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:communications_eagle_ftp_table_base_retrieval:4.5:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:communications_instant_messaging_server:10.0.1.5.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:communications_messaging_server:8.1:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:communications_network_integrity:7.3.6:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:communications_offline_mediation_controller:*:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:communications_offline_mediation_controller:12.0.0.5.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:communications_unified_inventory_management:7.4.1:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:communications_unified_inventory_management:7.4.2:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:e-business_suite_cloud_manager_and_cloud_backup_module:*:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:e-business_suite_cloud_manager_and_cloud_backup_module:2.2.1.1.1:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:e-business_suite_information_discovery:*:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:enterprise_manager_base_platform:13.4.0.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:enterprise_manager_base_platform:13.5.0.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.7.0.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.7.0.1:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.8.0.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:healthcare_foundation:8.1.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:hyperion_data_relationship_management:*:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:hyperion_infrastructure_technology:*:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:identity_management_suite:12.2.1.3.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:identity_management_suite:12.2.1.4.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:identity_manager_connector:11.1.1.5.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:jdeveloper:12.2.1.3.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:middleware_common_libraries_and_tools:12.2.1.4.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:retail_extract_transform_and_load:13.2.5:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:tuxedo:12.2.2.0.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:weblogic_server:12.2.1.3.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:weblogic_server:12.2.1.4.0:*:*:*:*:*:*:*:
- cpe:2.3:a:oracle:weblogic_server:14.1.1.0.0:*:*:*:*:*:*:*:
- 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 |