CVE-2021-44228
Apache Log4j2 JNDI remote code execution (Log4Shell)
How to Fix This Vulnerability
Upgrade org.apache.logging.log4j:log4j-core to a fixed version
Remediation Steps
- 1Upgrade log4j-core to 2.17.1 or later (Java 8), 2.12.4 (Java 7) or 2.3.2 (Java 6). 2.15.0 closes this CVE but is itself affected by CVE-2021-45046.
- 2Find every copy: shaded and fat jars and container images carry log4j-core under other names, so scan the built artifact, not only the pom.
- 3If you cannot upgrade yet, remove the JndiLookup class from the log4j-core jar. The formatMsgNoLookups setting alone is not a complete mitigation.
Description
Apache Log4j2 2.0-beta9 through 2.15.0 (excluding the 2.12.2, 2.12.3 and 2.3.1 releases) does not protect against attacker-controlled LDAP and other JNDI related endpoints in configuration, log messages and parameters. An attacker who can control log message content or its parameters can make the application load and run code from a server the attacker controls. From 2.15.0 message lookups are disabled by default and JNDI access is limited; later releases remove the lookup feature entirely.
Affected Packages & Versions
Am I affected?
Enter the version of org.apache.logging.log4j:log4j-core you have installed to check it against this advisory.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H