CVE-2022-23305

Published on: 01/18/2022 12:00:00 AM UTC

Last Modified on: 07/25/2022 07:09:15 PM UTC

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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 URL Logo [email protected] to track the vulnerability - currently rated as CRITICAL severity.
  • Affected Vendor/Software: URL Logo Apache Software Foundation - Apache Log4j 1.x version >= 1.2.1
  • Affected Vendor/Software: URL Logo Apache Software Foundation - Apache Log4j 1.x version < 2.0-alpha1
Vulnerability Patch/Work Around
  • 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
URL Logo MISC www.oracle.com/security-alerts/cpuapr2022.html
oss-security - CVE-2022-23305: SQL injection in JDBC Appender in Apache Log4j V1 www.openwall.com
text/html
URL Logo MLIST [oss-security] 20220118 CVE-2022-23305: SQL injection in JDBC Appender in Apache Log4j V1
CVE-2022-23305 Apache Log4j Vulnerability in NetApp Products | NetApp Product Security security.netapp.com
text/html
URL Logo CONFIRM security.netapp.com/advisory/ntap-20220217-0007/
Apache log4j 1.2 - logging.apache.org
text/html
URL Logo MISC logging.apache.org/log4j/1.2/index.html
No Description Provided lists.apache.org
text/html
URL Logo MISC lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
Oracle Critical Patch Update Advisory - July 2022 www.oracle.com
text/html
URL Logo MISC www.oracle.com/security-alerts/cpujul2022.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)
  • 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)
  • 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
ApplicationApacheLog4jAllAllAllAll
ApplicationBroadcomBrocade Sannav-AllAllAll
ApplicationNetappSnapmanager-AllAllAll
ApplicationNetappSnapmanager-AllAllAll
ApplicationOracleAdvanced Supply Chain Planning12.1AllAllAll
ApplicationOracleAdvanced Supply Chain Planning12.2AllAllAll
ApplicationOracleBusiness Intelligence12.2.1.3.0AllAllAll
ApplicationOracleBusiness Intelligence12.2.1.4.0AllAllAll
ApplicationOracleBusiness Intelligence5.9.0.0.0AllAllAll
ApplicationOracleBusiness Process Management Suite12.2.1.3.0AllAllAll
ApplicationOracleBusiness Process Management Suite12.2.1.4.0AllAllAll
ApplicationOracleCommunications Eagle Ftp Table Base Retrieval4.5AllAllAll
ApplicationOracleCommunications Messaging Server8.1AllAllAll
ApplicationOracleCommunications Network Integrity7.3.6AllAllAll
ApplicationOracleCommunications Unified Inventory Management7.4.1AllAllAll
ApplicationOracleCommunications Unified Inventory Management7.4.2AllAllAll
ApplicationOracleE-business Suite Cloud Manager And Cloud Backup ModuleAllAllAllAll
ApplicationOracleE-business Suite Cloud Manager And Cloud Backup Module2.2.1.1.1AllAllAll
ApplicationOracleEnterprise Manager Base Platform13.4.0.0AllAllAll
ApplicationOracleEnterprise Manager Base Platform13.5.0.0AllAllAll
ApplicationOracleFinancial Services Revenue Management And Billing Analytics2.7.0.0AllAllAll
ApplicationOracleFinancial Services Revenue Management And Billing Analytics2.7.0.1AllAllAll
ApplicationOracleFinancial Services Revenue Management And Billing Analytics2.8.0.0AllAllAll
ApplicationOracleHealthcare Foundation8.1.0AllAllAll
ApplicationOracleHyperion Data Relationship ManagementAllAllAllAll
ApplicationOracleHyperion Infrastructure TechnologyAllAllAllAll
ApplicationOracleIdentity Management Suite12.2.1.3.0AllAllAll
ApplicationOracleIdentity Management Suite12.2.1.4.0AllAllAll
ApplicationOracleIdentity Manager Connector11.1.1.5.0AllAllAll
ApplicationOracleJdeveloper12.2.1.3.0AllAllAll
ApplicationOracleMiddleware Common Libraries And Tools12.2.1.4.0AllAllAll
ApplicationOracleMysql Enterprise MonitorAllAllAllAll
ApplicationOracleTuxedo12.2.2.0.0AllAllAll
ApplicationOracleWeblogic Server12.2.1.3.0AllAllAll
ApplicationOracleWeblogic Server12.2.1.4.0AllAllAll
ApplicationOracleWeblogic Server14.1.1.0.0AllAllAll
ApplicationQosReload4jAllAllAllAll
  • 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_messaging_server:8.1:*:*:*:*:*:*:*:
  • cpe:2.3:a:oracle:communications_network_integrity:7.3.6:*:*:*:*:*:*:*:
  • 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: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: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)
Twitter Icon @CVEreport 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
Reddit Logo Icon /r/netcve CVE-2022-23305 2022-01-18 16:38:39
Reddit Logo Icon /r/sysadmin New Log4j 1.2x vulnerabilities 2022-01-21 14:49:06
© CVE.report 2022 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report