CVE-2021-44228: Apache Log4j2 Remote Code Execution Vulnerability
Apache · Log4j2 · NVD published 2021-12-10 · posted 2026-10-21 · last modified 2026-08-12
What it is
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.
| Weakness | CWE-20CWE-400CWE-502CWE-917 |
|---|---|
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H (source: [email protected]) |
| CISA due date | 2021-12-24 (for US federal agencies under BOD; a good deadline for everyone) |
| ATT&CK tactics | Resource Development → Initial Access → Persistence → Impact |
Exploitation evidence
First exploit evidence seen: 2021-12-09 (earliest date across the sources below).
Exploited in the wild
- CISA KEV: listed since 2021-12-10. Source
Public exploit code
Metasploit
auxiliary/scanner/http/log4shell_scanner: Log4Shell HTTP Scanner (disclosure 2021-12-09)exploit/multi/http/log4shell_header_injection: Log4Shell HTTP Header Injection (disclosure 2021-12-09)exploit/multi/http/ubiquiti_unifi_log4shell: UniFi Network Application Unauthenticated JNDI Injection RCE (via Log4Shell) (disclosure 2021-12-09)exploit/multi/http/vmware_vcenter_log4shell: VMware vCenter Server Unauthenticated JNDI Injection RCE (via Log4Shell) (disclosure 2021-12-09)exploit/linux/http/mobileiron_core_log4shell: MobileIron Core Unauthenticated JNDI Injection RCE (via Log4Shell) (disclosure 2021-12-12)
Exploit-DB
- EDB-50592: Apache Log4j 2 - Remote Code Execution (RCE) (2021-12-14)
- EDB-50590: Apache Log4j2 2.14.1 - Information Disclosure (2021-12-14)
- EDB-51183: AD Manager Plus 7122 - Remote Code Execution (RCE) (2023-04-01)
GitHub proof-of-concept repositories
469 public repositories from 444 accounts, first seen 2021-12-10. Most starred: fullhunt/log4j-scan (3425 stars), view repository.
Verify before running: public PoCs can be malicious. Read the code and only run it in an isolated lab. A PoC means exploit code is public, not that this CVE is exploited in the wild.
Sources: CISA KEV · Rapid7 Metasploit Framework module metadata · Exploit-DB (OffSec) · nomi-sec/PoC-in-GitHub.
Defend the Chain
The attack chain for CVE-2021-44228 laid across the MITRE ATT&CK Enterprise tactics. Solid cards come from the MITRE CTID KEV mappings; dashed cards are inferred by CVERadar from the CWE or description. Correct defences are real ATT&CK mitigations for that technique.
Pick a red technique card on the board, then choose the defence that stops it.
Defend against T1608.001 Upload Malware CTID: secondary impact
CVE-2021-44228, known as Log4Shell, affects Apache’s Log4j library, an open-source logging framework. An actor can exploit this vulnerability by submitting a specially crafted request to a vulnerable system that causes that system to execute arbitrary code. The request allows a cyber actor to take full control over the system. The actor can then steal information, launch ransomware, or conduct other malicious activity.
How to fix it
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. (source: CISA KEV)
Fixed versions
- siemens 6bk1602-0aa12-0tp0 firmware: upgrade to 2.7.0 or later
- siemens 6bk1602-0aa22-0tp0 firmware: upgrade to 2.7.0 or later
- siemens 6bk1602-0aa32-0tp0 firmware: upgrade to 2.7.0 or later
- siemens 6bk1602-0aa42-0tp0 firmware: upgrade to 2.7.0 or later
- siemens 6bk1602-0aa52-0tp0 firmware: upgrade to 2.7.0 or later
- apache log4j: upgrade to 2.3.1 or later (affected from 2.0.1)
- apache log4j: upgrade to 2.12.2 or later (affected from 2.4.0)
- apache log4j: upgrade to 2.15.0 or later (affected from 2.13.0)
- siemens capital: upgrade to 2019.1 or later
- siemens comos: upgrade to 10.4.2 or later
- siemens e-car operation center: upgrade to 2021-12-13 or later
- siemens energyip prepay: upgrade to 3.8.0.12 or later
- siemens gma-manager: upgrade to 8.6.2j-398 or later
- siemens industrial edge management hub: upgrade to 2021-12-13 or later
- siemens mindsphere: upgrade to 2021-12-16 or later
- siemens navigator: upgrade to 2021-12-13 or later
- siemens opcenter intelligence: upgrade to 3.5 or later (affected from 3.2)
- siemens siguard dsa: upgrade to 4.4.1 or later (affected from 4.2)
- siemens solid edge harness design: upgrade to 2020 or later
- siemens spectrum power 4: upgrade to 4.70 or later
- siemens spectrum power 7: upgrade to 2.30 or later
- siemens vesys: upgrade to 2019.1 or later
- intel datacenter manager: upgrade to 5.1 or later
Derived from the NVD CPE configuration (versionEndExcluding / versionEndIncluding). Always confirm with the vendor advisory.
Vendor advisories and patches
- http://www.openwall.com/lists/oss-security/2021/12/10/1 (Mailing List, Mitigation, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2021/12/10/2 (Mailing List, Mitigation, Third Party Advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M5CSVUNV4HWZZXGOKNSK6L7RPM7BOKIB/ (Release Notes)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFM/ (Release Notes)
- https://logging.apache.org/log4j/2.x/security.html (Release Notes, Vendor Advisory)
- https://msrc-blog.microsoft.com/2021/12/11/microsofts-response-to-cve-2021-44228-apache-log4j2/ (Patch, Third Party Advisory, Vendor Advisory)
- https://www.oracle.com/security-alerts/cpuapr2022.html (Patch, Third Party Advisory)
- https://www.oracle.com/security-alerts/cpujan2022.html (Patch, Third Party Advisory)
MITRE ATT&CK mitigations for this chain
- M1056 Pre-compromise (for T1608.001) : This technique cannot be easily mitigated with preventive controls since it is based on behaviors performed outside of the scope of enterprise defenses and controls.
- M1048 Application Isolation and Sandboxing (for T1190) : Application isolation will limit what other processes and system features the exploited target can access.
- M1037 Filter Network Traffic (for T1190) : Restrict outbound network traffic from public-facing servers to prevent unauthorized connections from initiating communications with attacker-controlled infrastructure. While this may not prevent the initial exploitation, it limits the attacker's ability to verify and control the compromised server post-exploit, reduci
- M1030 Network Segmentation (for T1190) : Segment externally facing servers and services from the rest of the network with a DMZ or on separate hosting infrastructure.
- M1016 Vulnerability Scanning (for T1190) : Regularly scan externally facing systems for vulnerabilities and establish procedures to rapidly patch systems when critical vulnerabilities are discovered through scanning and through public disclosure.
- M1026 Privileged Account Management (for T1190) : Use least privilege for service accounts will limit what permissions the exploited process gets on the rest of the system.
- M1050 Exploit Protection (for T1190) : Web Application Firewalls may be used to limit exposure of applications to prevent exploit traffic from reaching the application.
- M1035 Limit Access to Resource Over Network (for T1190) : Ensure that all publicly exposed services are actually intended to be so, and restrict access to any that should only be available internally.
- M1051 Update Software (for T1190) : Update software regularly by employing patch management for externally exposed applications.
- M1042 Disable or Remove Feature or Program (for T1505.003) : Consider disabling functions from web technologies such as PHP’s `evaI()` that may be abused for web shells.
Detection Generic guidance
- Initial Access: Alert on unusual requests to the affected service (odd paths, oversized payloads, exploit strings) in WAF, reverse-proxy and application logs.
- Persistence: Look for new files in web roots, new scheduled tasks/services, and new accounts created after the exposure window.
- Impact: Monitor service availability, unexpected encryption activity and mass file changes.
Response checklist Generic guidance
- Inventory: find every instance of the affected product and version (include internet-facing and forgotten ones).
- Patch or mitigate per the vendor advisory; if you cannot patch, remove internet exposure or apply the vendor workaround.
- Assume compromise if the system was exposed before patching: hunt for the indicators in the advisory and review logs back to the disclosure date.
- Rotate credentials and secrets stored on or used by the affected system if compromise cannot be ruled out.
Sources
- NVD: CVE-2021-44228
- CVE.org record
- CISA Known Exploited Vulnerabilities catalog
- FIRST EPSS (2026-10-24)
- MITRE CTID Mappings Explorer: KEV → ATT&CK
- http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html (Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.html (Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165270/Apache-Log4j2-2.14.1-Remote-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165281/Log4j2-Log4Shell-Regexes.html (Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165282/Log4j-Payload-Generator.html (Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165306/L4sh-Log4j-Remote-Code-Execution.html (Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165307/Log4j-Remote-Code-Execution-Word-Bypassing.html (Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165311/log4j-scan-Extensive-Scanner.html (Broken Link, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165371/VMware-Security-Advisory-2021-0028.4.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165532/Log4Shell-HTTP-Header-Injection.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165642/VMware-vCenter-Server-Unauthenticated-Log4Shell-JNDI-Injection-Remote-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/165673/UniFi-Network-Application-Unauthenticated-Log4Shell-Remote-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/167794/Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.html (Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/167917/MobileIron-Log4Shell-Remote-Command-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/171626/AD-Manager-Plus-7122-Remote-Code-Execution.html (Third Party Advisory, VDB Entry)
- http://seclists.org/fulldisclosure/2022/Dec/2 (Exploit, Mailing List, Third Party Advisory)
- http://seclists.org/fulldisclosure/2022/Jul/11 (Mailing List, Third Party Advisory)
- http://seclists.org/fulldisclosure/2022/Mar/23 (Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2021/12/10/3 (Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2021/12/13/1 (Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2021/12/13/2 (Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2021/12/14/4 (Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2021/12/15/3 (Mailing List, Third Party Advisory)
- https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf (Third Party Advisory)
- https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf (Third Party Advisory)
- https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf (Third Party Advisory)
- https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf (Third Party Advisory)
- https://github.com/cisagov/log4j-affected-db (Third Party Advisory)
- https://github.com/cisagov/log4j-affected-db/blob/develop/SOFTWARE-LIST.md (Broken Link, Product, US Government Resource)