Staging Environment: Content and features may be unstable or change without notice.
Advisory details: github_osv / GHSA-jfh8-c2jp-5v3q
Advisory ID github_osv/GHSA-jfh8-c2jp-5v3q
Aliases CVE-2021-44228
Summary Remote code injection in Log4j # Summary Log4j versions prior to 2.16.0 are subject to a remote code execution vulnerability via the ldap JNDI parser. As per [Apache's Log4j security guide](https://logging.apache.org/log4j/2.x/security.html): Apache Log4j2 <=2.14.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.16.0, this behavior has been disabled by default. Log4j version 2.15.0 contained an earlier fix for the vulnerability, but that patch did not disable attacker-controlled JNDI lookups in all situations. For more information, see the `Updated advice for version 2.16.0` section of this advisory. # Impact Logging untrusted or user controlled data with a vulnerable version of Log4J may result in Remote Code Execution (RCE) against your application. This includes untrusted data included in logged errors such as exception traces, authentication failures, and other unexpected vectors of user controlled input. # Affected versions Any Log4J version prior to v2.15.0 is affected to this specific issue. The v1 branch of Log4J which is considered End Of Life (EOL) is vulnerable to other RCE vectors so the recommendation is to still update to 2.16.0 where possible. ## Security releases Additional backports of this fix have been made available in versions 2.3.1, 2.12.2, and 2.12.3 ## Affected packages Only the `org.apache.logging.log4j:log4j-core` package is directly affected by this vulnerability. The `org.apache.logging.log4j:log4j-api` should be kept at the same version as the `org.apache.logging.log4j:log4j-core` package to ensure compatability if in use. # Remediation Advice ## Updated advice for version 2.16.0 The Apache Logging Services team provided updated mitigation advice upon the release of version 2.16.0, which [disables JNDI by default and completely removes support for message lookups](https://logging.apache.org/log4j/2.x/changes-report.html#a2.16.0). Even in version 2.15.0, lookups used in layouts to provide specific pieces of context information will still recursively resolve, possibly triggering JNDI lookups. This problem is being tracked as [CVE-2021-45046](https://nvd.nist.gov/vuln/detail/CVE-2021-45046). More information is available on the [GitHub Security Advisory for CVE-2021-45046](https://github.com/advisories/GHSA-7rjr-3q55-vv33). Users who want to avoid attacker-controlled JNDI lookups but cannot upgrade to 2.16.0 must [ensure that no such lookups resolve to attacker-provided data and ensure that the the JndiLookup class is not loaded](https://issues.apache.org/jira/browse/LOG4J2-3221). Please note that Log4J v1 is End Of Life (EOL) and will not receive patches for this issue. Log4J v1 is also vulnerable to other RCE vectors and we recommend you migrate to Log4J 2.16.0 where possible.
Status Published
Exploitability 2.0
Weighted Severity 9.0
Risk 10.0
Affected and Fixed Packages Package Details
Introduced and Fixed Package Commit Patches Package Commit Patches Details
Weaknesses (4)
Reference id Reference type URL
https://github.com/apache/logging-log4j2
https://github.com/apache/logging-log4j2/pull/608
https://github.com/github/advisory-database/pull/5501
https://github.com/tangxiaofeng7/apache-log4j-poc
https://issues.apache.org/jira/browse/LOG4J2-3198
https://issues.apache.org/jira/browse/LOG4J2-3201
https://issues.apache.org/jira/browse/LOG4J2-3214
https://issues.apache.org/jira/browse/LOG4J2-3221
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M5CSVUNV4HWZZXGOKNSK6L7RPM7BOKIB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFM
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M5CSVUNV4HWZZXGOKNSK6L7RPM7BOKIB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFM
https://logging.apache.org/log4j/2.x/changes-report.html#a2.15.0
https://logging.apache.org/log4j/2.x/manual/lookups.html#JndiLookup
https://logging.apache.org/log4j/2.x/manual/migration.html
https://msrc-blog.microsoft.com/2021/12/11/microsofts-response-to-cve-2021-44228-apache-log4j2
https://packetstormsecurity.com/files/165673/UniFi-Network-Application-Unauthenticated-Log4Shell-Remote-Code-Execution.html
https://packetstormsecurity.com/files/167794/Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.html
https://packetstormsecurity.com/files/167917/MobileIron-Log4Shell-Remote-Command-Execution.html
https://packetstormsecurity.com/files/171626/AD-Manager-Plus-7122-Remote-Code-Execution.html
https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
https://seclists.org/fulldisclosure/2022/Dec/2
https://seclists.org/fulldisclosure/2022/Jul/11
https://seclists.org/fulldisclosure/2022/Mar/23
https://security.netapp.com/advisory/ntap-20211210-0007
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-44228
1 Mailing List http://www.openwall.com/lists/oss-security/2021/12/10/1
1 Mailing List http://www.openwall.com/lists/oss-security/2021/12/13/1
11 Mailing List http://seclists.org/fulldisclosure/2022/Jul/11
1469345530182455296 Other https://twitter.com/kurtseifried/status/1469345530182455296
2 Mailing List http://seclists.org/fulldisclosure/2022/Dec/2
2 Mailing List http://www.openwall.com/lists/oss-security/2021/12/10/2
2 Mailing List http://www.openwall.com/lists/oss-security/2021/12/13/2
23 Mailing List http://seclists.org/fulldisclosure/2022/Mar/23
3 Mailing List http://www.openwall.com/lists/oss-security/2021/12/10/3
3 Mailing List http://www.openwall.com/lists/oss-security/2021/12/15/3
4 Mailing List http://www.openwall.com/lists/oss-security/2021/12/14/4
930724 Advisory https://www.kb.cert.org/vuls/id/930724
AD-Manager-Plus-7122-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/171626/AD-Manager-Plus-7122-Remote-Code-Execution.html
alert-cve-2021-44228.html Other https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
Apache-Log4j2-2.14.1-Information-Disclosure.html Other http://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.html
Apache-Log4j2-2.14.1-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html
Apache-Log4j2-2.14.1-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/165270/Apache-Log4j2-2.14.1-Remote-Code-Execution.html
be-2022-0001 Other https://www.bentley.com/en/common-vulnerability-exposure/be-2022-0001
cisco-sa-apache-log4j-qRuKNEbd Advisory https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
cpuapr2022.html Other https://www.oracle.com/security-alerts/cpuapr2022.html
cpujan2022.html Other https://www.oracle.com/security-alerts/cpujan2022.html
CVE-2021-44228 Other https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-44228
CVE-2021-44228 https://nvd.nist.gov/vuln/detail/CVE-2021-44228
cve-2021-44228.html Other https://www.nu11secur1ty.com/2021/12/cve-2021-44228.html
dsa-5020 Advisory https://www.debian.org/security/2021/dsa-5020
GHSA-7rjr-3q55-vv33 https://github.com/advisories/GHSA-7rjr-3q55-vv33
HT213189 Other https://support.apple.com/kb/HT213189
intel-sa-00646.html Other https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html
L4sh-Log4j-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/165306/L4sh-Log4j-Remote-Code-Execution.html
Log4j2-Log4Shell-Regexes.html Other http://packetstormsecurity.com/files/165281/Log4j2-Log4Shell-Regexes.html
log4j-affected-db Other https://github.com/cisagov/log4j-affected-db
Log4j-Payload-Generator.html Other http://packetstormsecurity.com/files/165282/Log4j-Payload-Generator.html
Log4j-Remote-Code-Execution-Word-Bypassing.html Other http://packetstormsecurity.com/files/165307/Log4j-Remote-Code-Execution-Word-Bypassing.html
log4j-scan-Extensive-Scanner.html Other http://packetstormsecurity.com/files/165311/log4j-scan-Extensive-Scanner.html
Log4Shell-HTTP-Header-Injection.html Other http://packetstormsecurity.com/files/165532/Log4Shell-HTTP-Header-Injection.html
MobileIron-Log4Shell-Remote-Command-Execution.html Other http://packetstormsecurity.com/files/167917/MobileIron-Log4Shell-Remote-Command-Execution.html
msg00007.html Mailing List https://lists.debian.org/debian-lts-announce/2021/12/msg00007.html
Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.html Other http://packetstormsecurity.com/files/167794/Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.html
security.html Other https://logging.apache.org/log4j/2.x/security.html
SNWLID-2021-0032 Other https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
SOFTWARE-LIST.md Other https://github.com/cisagov/log4j-affected-db/blob/develop/SOFTWARE-LIST.md
ssa-397453.pdf Other https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf
ssa-479842.pdf Other https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf
ssa-661247.pdf Other https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf
ssa-714170.pdf Other https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf
UniFi-Network-Application-Unauthenticated-Log4Shell-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/165673/UniFi-Network-Application-Unauthenticated-Log4Shell-Remote-Code-Execution.html
VMware-Security-Advisory-2021-0028.4.html Other http://packetstormsecurity.com/files/165371/VMware-Security-Advisory-2021-0028.4.html
VMware-Security-Advisory-2021-0028.html Other http://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.html
VMware-vCenter-Server-Unauthenticated-Log4Shell-JNDI-Injection-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/165642/VMware-vCenter-Server-Unauthenticated-Log4Shell-JNDI-Injection-Remote-Code-Execution.html
Data source Exploit-DB
Date added April 1, 2023
Description AD Manager Plus 7122 - Remote Code Execution (RCE)
Ransomware campaign use Unknown
Source publication date April 1, 2023
Exploit type remote
Platform java
Source update date April 1, 2023
Data source Metasploit
Description MobileIron Core is affected by the Log4Shell vulnerability whereby a JNDI string sent to the server will cause it to connect to the attacker and deserialize a malicious Java object. This results in OS command execution in the context of the tomcat user. This module will start an LDAP server that the target will need to connect to.
Note
Stability:
  - crash-safe
SideEffects:
  - ioc-in-logs
AKA:
  - Log4Shell
  - LogJam
Reliability:
  - repeatable-session
RelatedModules:
  - auxiliary/scanner/http/log4shell_scanner
  - exploit/multi/http/log4shell_header_injection
Ransomware campaign use Unknown
Source publication date Dec. 12, 2021
Platform Unix
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/linux/http/mobileiron_core_log4shell.rb
Data source KEV
Date added Dec. 10, 2021
Description Apache Log4j2 contains a vulnerability where JNDI features do not protect against attacker-controlled JNDI-related endpoints, allowing for remote code execution.
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.
Due date Dec. 24, 2021
Note
https://nvd.nist.gov/vuln/detail/CVE-2021-44228
Ransomware campaign use Known
Data source Metasploit
Description The Ubiquiti UniFi Network Application versions 5.13.29 through 6.5.53 are affected by the Log4Shell vulnerability whereby a JNDI string can be sent to the server via the 'remember' field of a POST request to the /api/login endpoint that will cause the server to connect to the attacker and deserialize a malicious Java object. This results in OS command execution in the context of the server application. This module will start an LDAP server that the target will need to connect to.
Note
Stability:
  - crash-safe
SideEffects:
  - ioc-in-logs
AKA:
  - Log4Shell
  - LogJam
Reliability:
  - repeatable-session
Ransomware campaign use Unknown
Source publication date Dec. 9, 2021
Platform Unix,Windows
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/ubiquiti_unifi_log4shell.rb
Data source Metasploit
Description VMware vCenter Server is affected by the Log4Shell vulnerability whereby a JNDI string can sent to the server that will cause it to connect to the attacker and deserialize a malicious Java object. This results in OS command execution in the context of the root user in the case of the Linux virtual appliance and SYSTEM on Windows. This module will start an LDAP server that the target will need to connect to. This exploit uses the logon page vector.
Note
Stability:
  - crash-safe
SideEffects:
  - ioc-in-logs
AKA:
  - Log4Shell
  - LogJam
Reliability:
  - repeatable-session
RelatedModules:
  - auxiliary/scanner/http/log4shell_scanner
  - exploit/multi/http/log4shell_header_injection
Ransomware campaign use Unknown
Source publication date Dec. 9, 2021
Platform Unix,Windows
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/vmware_vcenter_log4shell.rb
Data source Metasploit
Description Versions of Apache Log4j2 impacted by CVE-2021-44228 which allow JNDI features used in configuration, log messages, and parameters, do not protect against attacker controlled LDAP and other JNDI related endpoints. This module will scan an HTTP end point for the Log4Shell vulnerability by injecting a format message that will trigger an LDAP connection to Metasploit. This module is a generic scanner and is only capable of identifying instances that are vulnerable via one of the pre-determined HTTP request injection points. These points include HTTP headers and the HTTP request path. Known impacted software includes Apache Struts 2, VMWare VCenter, Apache James, Apache Solr, Apache Druid, Apache JSPWiki, Apache OFBiz.
Note
Stability:
  - crash-safe
SideEffects:
  - ioc-in-logs
AKA:
  - Log4Shell
  - LogJam
Reliability: []
Ransomware campaign use Unknown
Source publication date Dec. 9, 2021
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/auxiliary/scanner/http/log4shell_scanner.rb
Data source Metasploit
Description Versions of Apache Log4j2 impacted by CVE-2021-44228 which allow JNDI features used in configuration, log messages, and parameters, do not protect against attacker controlled LDAP and other JNDI related endpoints. This module will exploit an HTTP end point with the Log4Shell vulnerability by injecting a format message that will trigger an LDAP connection to Metasploit and load a payload. The Automatic target delivers a Java payload using remote class loading. This requires Metasploit to run an HTTP server in addition to the LDAP server that the target can connect to. The targeted application must have the trusted code base option enabled for this technique to work. The non-Automatic targets deliver a payload via a serialized Java object. This does not require Metasploit to run an HTTP server and instead leverages the LDAP server to deliver the serialized object. The target application in this case must be compatible with the user-specified JAVA_GADGET_CHAIN option.
Note
Stability:
  - crash-safe
SideEffects:
  - ioc-in-logs
AKA:
  - Log4Shell
  - LogJam
Reliability:
  - repeatable-session
RelatedModules:
  - auxiliary/scanner/http/log4shell_scanner
Ransomware campaign use Unknown
Source publication date Dec. 9, 2021
Platform Java,Unix,Windows
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/log4shell_header_injection.rb

No EPSS data available for this advisory.

Patch URL
There are no known patches.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H Found at https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-jfh8-c2jp-5v3q/GHSA-jfh8-c2jp-5v3q.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: SSVCv2/E:A/A:Y/T:T/P:M/B:A/M:M/D:C/2025-02-04T14:25:34Z/

Decision: Act

Source URL: https://github.com/cisagov/vulnrichment/blob/develop/2021/44xxx/CVE-2021-44228.json

Source Advisory: vulnrichment/CVE-2021-44228

View SSVC decision tree
[{'Exploitation': 'active'},
 {'Automatable': 'yes'},
 {'Technical Impact': 'total'},
 {'Mission Prevalence': 'minimal'},
 {'Public Well-being Impact': 'material'},
 {'Mission & Well-being': 'medium'}]