Description
Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.15.0, this behavior has been disabled by default. From version 2.16.0 (along with 2.12.2, 2.12.3, and 2.3.1), this functionality has been completely removed. Note that this vulnerability is specific to log4j-core and does not affect log4net, log4cxx, or other Apache Logging Services projects.
CVSS scores
| Version | Scored by | Score | Vector |
|---|---|---|---|
| CVSS 3.1 | CISA ADP | 10 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| CVSS 2.0 | NVD (NIST) | 9.3 High | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Exploitation
- Listed in the CISA Known Exploited Vulnerabilities catalog on 2021-12-10.
- U.S. federal remediation due date: 2021-12-24.
- Known to be used in ransomware campaigns.
Affected products
- Apache Software Foundation Apache Log4j2: from 2.0-beta9 before log4j-core*
Fix
- 20211210 Vulnerability in Apache Log4j Library Affecting Cisco Products: December 2021 (vendor-advisory)
- DSA-5020 (vendor-advisory)
- FEDORA-2021-f0f501d01f (vendor-advisory)
- Microsoft’s Response to CVE-2021-44228 Apache Log4j 2 (vendor-advisory)
- 20211210 A Vulnerability in Apache Log4j Library Affecting Cisco Products: December 2021 (vendor-advisory)
- 20211210 Vulnerabilities in Apache Log4j Library Affecting Cisco Products: December 2021 (vendor-advisory)
- FEDORA-2021-66d6c484f3 (vendor-advisory)
Mitigations
- CISA required action: For all affected software assets for which updates exist, the only acceptable remediation actions are: 1) Apply updates; OR 2) remove affected assets from agency networks. Temporary mitigations using one of the measures provided at https://www.cisa.gov/uscert/ed-22-02-apache-log4j-recommended-mitigation-measures are only acceptable until updates are available.
Weakness
CWE-502 Deserialization of Untrusted Data · CWE-400 Uncontrolled Resource Consumption · CWE-20 Improper Input Validation
References
- https://logging.apache.org/log4j/2.x/security.html
- [oss-security] 20211210 CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related e
- [oss-security] 20211210 Re: CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI relat
- 20211210 Vulnerability in Apache Log4j Library Affecting Cisco Products: December 2021
- [oss-security] 20211210 Re: CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI relat
- https://security.netapp.com/advisory/ntap-20211210-0007/
- http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
- DSA-5020
- [debian-lts-announce] 20211212 [SECURITY] [DLA 2842-1] apache-log4j2 security update
- FEDORA-2021-f0f501d01f
- Microsoft’s Response to CVE-2021-44228 Apache Log4j 2
- [oss-security] 20211213 Re: CVE-2021-4104: Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2
- [oss-security] 20211213 CVE-2021-4104: Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2
- [oss-security] 20211214 CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of se
- 20211210 A Vulnerability in Apache Log4j Library Affecting Cisco Products: December 2021
- VU#930724
- https://twitter.com/kurtseifried/status/1469345530182455296
- https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf
- http://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.html
- http://packetstormsecurity.com/files/165270/Apache-Log4j2-2.14.1-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.html
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html
- 20211210 Vulnerabilities in Apache Log4j Library Affecting Cisco Products: December 2021
- [oss-security] 20211215 Re: CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial o
- http://packetstormsecurity.com/files/165282/Log4j-Payload-Generator.html
- http://packetstormsecurity.com/files/165281/Log4j2-Log4Shell-Regexes.html
- http://packetstormsecurity.com/files/165307/Log4j-Remote-Code-Execution-Word-Bypassing.html
- http://packetstormsecurity.com/files/165311/log4j-scan-Extensive-Scanner.html
- http://packetstormsecurity.com/files/165306/L4sh-Log4j-Remote-Code-Execution.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf
- FEDORA-2021-66d6c484f3
- http://packetstormsecurity.com/files/165371/VMware-Security-Advisory-2021-0028.4.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf
- https://www.oracle.com/security-alerts/cpujan2022.html
- http://packetstormsecurity.com/files/165532/Log4Shell-HTTP-Header-Injection.html
- https://github.com/cisagov/log4j-affected-db/blob/develop/SOFTWARE-LIST.md
- http://packetstormsecurity.com/files/165642/VMware-vCenter-Server-Unauthenticated-Log4Shell-JNDI-Injection-Remote-Code-Execution.html
Change log
- First recorded on SecureCyberVM from CVE.org, NVD, CISA KEV and FIRST EPSS.
Sources: CVE.org, NIST NVD, CISA KEV and ADP, FIRST EPSS. This record is refreshed automatically every day; changes are listed in the change log above.
