CVE-2022-23305

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

Last Modified on: 04/20/2022 12:16:00 AM 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

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
ApplicationApacheLog4jAllAllAllAll
ApplicationBroadcomBrocade Sannav-AllAllAll
ApplicationNetappSnapmanager-AllAllAll
ApplicationNetappSnapmanager-AllAllAll
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: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