Advisories · Java & business apps
CVE-2021-44228
Critical
CVSS 10.0
Actively exploited
Apache Log4j2 Log4Shell JNDI remote code execution
Disclosed 2021 · Last reviewed 2 Dec 2026
Log4j2 could treat a string in a log message as a JNDI lookup and load remote code. Applications that log user-controlled input were exposed.
What happened
Message lookup substitution resolved JNDI names found in logged text. The resolver fetched and instantiated a remote class.
Affected and patched versions
- Affected
- Log4j2 2.0-beta9 through 2.14.1. Later 2.15 and 2.16 releases fixed this bug and still needed the follow-up updates.
- Patched
- Log4j2 2.17.1 or later for Java 8, and the matching later line for Java 7.
How to check your server
Check
find / -name 'log4j-core-*.jar' 2>/dev/null
How to fix and harden
- The find command lists log4j-core jars. Read the version in the file name.
- Replace every 2.x jar below 2.17.1. 2.15.0 stops this CVE and is not the last fix in the series.
- Restart each Java service that loaded the old jar.
- Prefer the patched dependency from the application build over deleting classes inside a jar.
Fix
find / -name 'log4j-core-*.jar' 2>/dev/null
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON