All Apache Log4j CVEs โ Complete Vulnerability History
Last updated: April 1, 2026 · Data: OSV Database
Log4j is Apache's Java logging library used by virtually every Java application. Log4Shell (CVE-2021-44228) was the most severe Java vulnerability ever discovered. The fix process required multiple patches as bypasses were discovered.
CVE history โ all 5 known vulnerabilities
๐ด 2 CVEs on CISA KEV โ actively exploited in real attacks
| CVE ID | Year | Severity | Description | Fix |
|---|---|---|---|---|
| CVE-2019-17571 | 2019 | CRITICAL | Deserialization of untrusted data via SocketServer | Fixed in 2.0-beta9 |
| CVE-2021-44228 | 2021 | ๐ดCRITICAL | Log4Shell โ RCE via JNDI lookup in log message โ CISA KEV | Fixed in 2.15.0 |
| CVE-2021-45046 | 2021 | ๐ดCRITICAL | Log4Shell bypass โ incomplete fix in 2.15.0 โ CISA KEV | Fixed in 2.16.0 |
| CVE-2021-45105 | 2021 | HIGH | DoS via crafted string causing infinite recursion | Fixed in 2.17.0 |
| CVE-2021-44832 | 2021 | MEDIUM | RCE via JDBC Appender with attacker-controlled config | Fixed in 2.17.1 |
Current safe version
The latest safe version addresses all 5 known CVEs listed above.
Before and after
Vulnerable:
2.14.1
Fixed:
2.23.1
Then run: mvn dependency:resolve
log4j 2.23.1 Java version requirements
log4j 2.23.1 requires Java 8 or later. If you are on Java 7, the last compatible safe version is log4j 2.12.4 (Java 7 branch). log4j 1.x is end of life โ do noegardless of Java version.
| Java Version | Safe log4j Version | Notes | |||
|---|---|---|---|---|---|
| Java 8+ | 2.23.1 | Latest โ recommended | |||
| Java 7 | 2.12.4 | Java 7 branch โ patches Log4Shell | Java 6 | 2.3.2 | Java 6 branch โ patches Log4Shell |
Paste your manifest โ see your exact installed version against this full CVE list.
Scan with PackageFix โFree ยท No signup ยท No CLI ยท Runs in your browser