Log4Shell
Also tracked as: LogJam
Disclosed Dec 9, 2021
Updated Dec 1, 2026
Unauthenticated remote code execution in Apache Log4j 2 triggered when attacker-controlled strings containing JNDI lookup expressions (such as ${jndi:ldap://...}) are logged. The flaw that popularized the *4Shell naming convention across the security industry.
Component
Apache Log4j 2 JNDI Lookup
Attack Vector & Class
Pre-Auth RCE
Injection
Exploitation Status
Listed in CISA KEV
KEV added Dec 10, 2021
CVSS & Ecosystems
10.0 (v3.1)
Java, Apache Log4j
Affected Versions
- Apache Log4j 2.0-beta9 through 2.14.1 (and 2.15.0 incomplete mitigation)
Fixed / Recommended Versions
- Apache Log4j 2.17.1+ (Java 8+)
- Apache Log4j 2.12.4 (Java 7)
- Apache Log4j 2.3.2 (Java 6)
Technical Root Cause
Log4j 2 performed message lookup substitution by default on logged strings, including JNDI lookups over LDAP, RMI, and DNS. When an application logged untrusted input—such as an HTTP User-Agent header, username, or search query—Log4j resolved the JNDI URL and could load and execute arbitrary Java bytecode from an attacker-controlled server or exfiltrate environment secrets.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Remediation & Hardening
- 1Upgrade log4j-core to 2.17.1 or newer across all Java services, including shaded/fat JARs and vendored appliances.
- 2Audit transitive dependencies and container images for bundled copies of log4j-core.
- 3Restrict outbound LDAP/RMI egress from application servers and rotate exposed credentials if internet-facing services were unpatched.