CVE-2021-44228

Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints

State
Published
Severity
10.0 Critical
Published
Dec 10, 2021
Updated
Oct 21, 2025
Reserved
Nov 26, 2021

Read the record on cve.org

Description

Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.15.0, this behavior has been disabled by default. From version 2.16.0 (along with 2.12.2, 2.12.3, and 2.3.1), this functionality has been completely removed. Note that this vulnerability is specific to log4j-core and does not affect log4net, log4cxx, or other Apache Logging Services projects.

Scores

CVSSScoreVectorSource
3.110.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-502 Deserialization of Untrusted Data
  • CWE-400 Uncontrolled Resource Consumption
  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
Apache Log4j2Apache Software Foundation
  • 2.0-beta9 to before log4j-core*Affectedfrom 2.3.1Not affectedfrom 2.4Affectedfrom 2.12.2Not affectedfrom 2.13.0Affectedfrom 2.15.0Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.