Cyber Resilience

CVE-2021-45046

RCE in Apache Log4J 2.0.1 – 2.12.2

CISA KEVActive ExploitationEUVD ExploitedRansomware-linkedRCE
Published
14 December 2021
Modified
27 October 2025
KEV Added
01 May 2023
Patch / advisory
CVSS Score v3.1 9.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS Score 0.99 100.0th percentile
Risk Priority 90 floored blend · peak EPSS

Summary

CVE-2021-45046 is a critical-severity Expression Language Injection (CWE-917) vulnerability in Apache Log4J. Its CVSS base score is 9.0 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 0.0% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

The vulnerability is an incomplete remediation of CVE-2021-44228 in Apache Log4j 2.15.0 that leaves certain non-default configurations exposed. Specifically, when the logging configuration uses a non-default Pattern Layout containing a Context Lookup (such as $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC), an attacker who can supply data to the Thread Context Map (MDC) can embed a JNDI Lookup expression. This affects Log4j versions prior to the subsequent fixes on both Java 8 and Java 7 runtimes.

An attacker with control over MDC input data can therefore supply a crafted string that triggers JNDI resolution. Successful exploitation yields an information leak and remote code execution in some environments, or local code execution in all environments. The attack does not require authentication or user interaction and carries a CVSS 3.1 score of 9.0 under the vector AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.

Vendor guidance and subsequent patches state that the issue is resolved in Log4j 2.16.0 (Java 8) and 2.12.2 (Java 7) by removing support for message lookup patterns entirely and disabling JNDI functionality by default. Public advisories from the oss-security list and Siemens product-cert bulletins reiterate these version upgrades as the primary mitigation.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)
KEV Date Added
01 May 2023

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2020-17530Same vendor: Apacheboth on KEV
CVE-2020-10199Shared CWE-917both on KEV
CVE-2022-26134Shared CWE-917both on KEV
CVE-2010-1871Shared CWE-917both on KEV
CVE-2021-26084Shared CWE-917both on KEV
CVE-2021-44228Same product: Apache Log4Jboth on KEV
CVE-2021-40438Same product: Debian Debian Linuxboth on KEV
CVE-2021-44026Same product: Debian Debian Linuxboth on KEV
CVE-2021-41773Same product: Fedoraproject Fedoraboth on KEV
CVE-2021-42013Same product: Fedoraproject Fedoraboth on KEV

Affected Assets

apache
log4j
2.0 · 2.0.1 — 2.12.2 · 2.13.0 — 2.16.0
cvat
computer vision annotation tool
all versions
intel
audio development kit
all versions
intel
datacenter manager
all versions
intel
genomics kernel library
all versions
intel
oneapi
all versions
intel
secure device onboard
all versions
intel
sensor solution firmware development kit
all versions
intel
system debugger
all versions
intel
system studio
all versions
+45 more product configuration(s) — see NVD for full list

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.1.2
  • V1.3.2
  • V1.3.5
  • V4.3.1

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require input neutralization and safe EL construction to prevent injection flaws.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development and acceptance can detect EL injection but does not itself implement the fix.

prevents

Secure SDLC mandates input validation and output encoding that directly prevent expression-language injection.

prevents

Application security requirements explicitly call for controls against injection flaws including EL injection.

prevents

Secure architecture principles reduce the attack surface but do not prescribe the specific neutralization techniques needed.

prevents

Secure coding standards require proper escaping and parameterization of expression-language statements.

References