CVE-2021-44832

Apache Log4j2 vulnerable to RCE via JDBC Appender when attacker controls configuration

State
Published
Severity
6.6 Medium
Published
Dec 28, 2021
Updated
May 29, 2026
Reserved
Dec 11, 2021

Read the record on cve.org

Description

Apache Log4j2 versions 2.0-beta7 through 2.17.0 (excluding security fix releases 2.3.2 and 2.12.4) are vulnerable to a remote code execution (RCE) attack when a configuration uses a JDBC Appender with a JNDI LDAP data source URI when an attacker has control of the target LDAP server. This issue is fixed by limiting JNDI data source names to the java protocol in Log4j2 versions 2.17.1, 2.12.4, and 2.3.2.

Scores

CVSSScoreVectorSource
3.16.6 MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Affected Products

ProductVersions
Apache Log4j2Apache Software Foundation
  • log4j-core to before 2.17.1Affectedfrom 2.13.0Affectedfrom 2.12.4Not affectedfrom 2.4Affectedfrom 2.3.2Not affectedfrom 2.0-beta7Affected

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.