9

CVE-2021-45046: Apache Log4j2 Deserialization of Untrusted Data Vulnerability

CVSS: 9.0v3.1CriticalKEVRansomwareAnalyzed
AliasesMGASA-2021-0566UBUNTU-CVE-2021-45046DEBIAN-CVE-2021-45046
Published 14-12-2021Last modified 21-10-2025

Vulnerability summary

CVE-2021-45046 is a critical (CVSS 9.0) Expression Language Injection vulnerability in Apache Log4j2. It is known to be exploited: CISA lists it, first on 01-05-2023. It has been used in ransomware campaigns. EPSS estimates a 99.98% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
90/100
0100
Critical · default modelHow is this calculated?
CVSS score
9.0/10
010
Critical · v3.1 (CVE.org)
EPSS score
99.98%
0%100%
Critical · 0.00 pp in 30 days
KEVListedCISA
RansomwareKnown useFlagged by CISA
Public exploits1metasploit

Advisory lineage

Upstream 0 · Downstream 9 · Related 5

Timeline

  1. 14-12-2021
    PublishedVulnerability first disclosed.
  2. 01-05-2023
    Added to CISA KEVApache Log4j2 Deserialization of Untrusted Data Vulnerability
  3. 22-05-2023
    CISA remediation dueApply updates per vendor instructions.
  4. 21-10-2025
    Last modifiedVulnerability information updated.

Description

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 metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

99.98%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

0.00 pp

From 99.98% on 18-09-2026

18-09-202618-10-2026
EPSS score
99.98%

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
01-05-2023
Federal due date
22-05-2023
Ransomware

CISA required action

Apply updates per vendor instructions. logging.apache.org/log4j/2.x/security.html nvd.nist.gov/vuln/detail/CVE-2021-45046

Public exploits

1 found
  • MetasploitMetasploitremoteUnverified

    Log4Shell HTTP Scanner

    auxiliary/scanner/http/log4shell_scanner

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Siemens29 products
Intel8 products
Debian2 products
  • apache-log4j2< 2.16.0-1 | < 2.16.0-1~deb10u1 | < 2.16.0-1~deb11u1
  • debian_linuxEOL10.0 | 11.0
Apache1 product
  • log4j≥ 2.0.1, < 2.12.2 | ≥ 2.13.0, < 2.16.0 | 2.0 | 2.0:beta9 | 2.0:rc1 | 2.0:rc2
Apache software foundation1 product
Cvat1 product
Fedoraproject1 product
Mageia1 product
  • log4j< 2.16.0-1.mga8
Org.apache.logging.log4j1 product
  • log4j-core≥ 2.13.0, < 2.16.0 | ≥ 2.4.0, < 2.12.2 | < 2.3.1
Org.ops4j.pax.logging1 product
  • pax-logging-log4j2≥ 1.8.0, < 1.9.2 | ≥ 1.10.0, < 1.10.8 | ≥ 1.11.0, < 1.11.11 | ≥ 2.0.0, < 2.0.12
Sonicwall1 product
Ubuntu1 product
  • apache-log4j2< 2.16.0-0.20.04.1

12 vendors · 48 products

References

42 links
Show all 42 references