CVE-2021-45046

Apache Log4j2 Deserialization of Untrusted Data Vulnerability

Actively exploited · CISA KEV Ransomware use: known
9 CriticalCVSS v3.1
100.0%EPSS (30-day exploit probability)
2023-05-01added to KEV
2023-05-22CISA federal due date

Summary

Apache Log4j2. 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.

It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allows attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in an information leak and remote code execution in some environments and local code execution in all environments. Log4j 2.16.0 (Java 8) and 2.12.2 (Java 7) fix this issue by removing support for message lookup patterns and disabling JNDI functionality by default.

CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-917
Published
2021-12-14 (last modified 2026-06-17)

What to do

Apply updates per vendor instructions.

  1. Find every instance of Apache Log4j2 in your asset inventory, including internet-facing ones.
  2. Apply the vendor fix or mitigation, or isolate/disconnect the asset until you can.
  3. Hunt for signs of compromise from before you patched; exploitation is already happening in the wild.
  4. Ask critical suppliers whether they are affected and when they will be patched.

FAQ

Is CVE-2021-45046 being exploited?

Yes. CISA added CVE-2021-45046 to its Known Exploited Vulnerabilities catalog on 2023-05-01, which means there is reliable evidence of active exploitation. It is also known to be used in ransomware campaigns.

How do I fix CVE-2021-45046?

CISA required action: Apply updates per vendor instructions.

What is the EPSS score for CVE-2021-45046?

The EPSS score is 99.98%, meaning an estimated 99.98% probability of exploitation activity in the next 30 days (percentile 100).

Other exploited Apache vulnerabilities

CVE-2026-129448Apache Roller Deserialization of Untrusted Data Vulnerability2026-11-20
CVE-2026-90436Apache Axis Unsafe Reflection Vulnerability2026-11-18
CVE-2016-3081Apache Struts Command Injection Vulnerability2026-10-08
CVE-2026-34486Apache Tomcat Missing Encryption of Sensitive Data Vulnerability2026-08-04
CVE-2026-34197Apache ActiveMQ Improper Input Validation Vulnerability2026-04-16
CVE-2024-38475Apache HTTP Server Improper Escaping of Output Vulnerability2025-05-01
CVE-2025-24813Apache Tomcat Path Equivalence Vulnerability2025-04-01
CVE-2024-45195Apache OFBiz Forced Browsing Vulnerability2025-02-04

All Apache exploited CVEs →

Triage many CVEs at once

Paste up to 25 CVEs and get KEV, EPSS and CVSS side by side, with CSV export.

Try Pro CVE triage

Sources: CISA KEV, NIST NVD, FIRST EPSS. This page is informational; verify against the vendor advisory before acting. © CyberStrategiX.