CVE-2021-45046: Apache Log4j2 Deserialization of Untrusted Data Vulnerability
Apache Log4j2 contains a deserialization of untrusted data vulnerability due to the incomplete fix of CVE-2021-44228, where the Thread Context Lookup Pattern is vulnerable to remote code execution in certain non-default configurations.
Why it matters
CISA added CVE-2021-45046 to its Known Exploited Vulnerabilities (KEV) catalog on 2023-05-01 — meaning it is confirmed to be exploited in the wild, not just theoretically risky. It has been used in ransomware campaigns. US federal agencies had to remediate it by 2023-05-22, and it is a high priority for everyone else too.
How to fix it
Apply updates per vendor instructions.
Details
- Affected: Apache Log4j2
- Added to CISA KEV: 2023-05-01
- Federal remediation due: 2023-05-22
- Weakness: CWE-917
- EPSS: 100.0% chance of exploitation in the next 30 days, higher than 100% of all CVEs
- Reference: NVD entry for CVE-2021-45046
Affected open-source packages
The GitHub Advisory Database links CVE-2021-45046 to these packages. Each page lists every advisory for the package, the affected versions and the fixed release:
- org.apache.logging.log4j:log4j-core Maven (Java)
- org.ops4j.pax.logging:pax-logging-log4j2 Maven (Java)
Is CVE-2021-45046 in your fleet?
SkyShield scans your servers, containers and cloud for vulnerable packages and images (Trivy), ranks them by whether they're on CISA KEV and their EPSS exploit probability, and shows the fix per machine. Start free.