CVE-2021-44228
Remote code injection in Log4j
Reported by apache · Published December 10, 2021
log4j-core is fixed in 2.15.0, 2.12.2 and 2.3.1 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.logging.log4j:log4j-core | Maven Central | 2.15.0, 2.12.2, 2.3.1 |
| org.ops4j.pax.logging:pax-logging-log4j2 | Maven Central | 2.0.11, 1.11.10, 1.10.8, 1.9.2 |
| org.apache.logging.log4j:log4j | Maven Central | 2.15.0, 2.12.2, 2.3.1 |
| com.guicedee.services:log4j-core | Maven Central | 1.2.1.2-jre17 |
| java-17-amazon-corretto-headless | Amazon Linux | 1:17.0.1+12-3.amzn2.1 |
| zaproxy | Arch Linux | 2.11.1-2 |
| java-1.7.0-openjdk-accessibility | Amazon Linux | 1:1.7.0.261-2.6.22.2.amzn2.0.2 |
| java-1.7.0-openjdk-demo | Amazon Linux | 1:1.7.0.261-2.6.22.2.amzn2.0.2 |
| java-1.8.0-openjdk-headless | Amazon Linux | 1:1.8.0.312.b07-1.amzn2.0.2 |
| java-1.8.0-openjdk-demo-debug | Amazon Linux | 1:1.8.0.312.b07-1.amzn2.0.2 |
| openfire | Arch Linux | 4.6.5-1 |
| java-1.8.0-openjdk-accessibility | Amazon Linux | 1:1.8.0.312.b07-1.amzn2.0.2 |
44 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Log4j2 | 2.0-beta9 |
| amazon:2 | java-17-amazon-corretto-headless | 0 |
| arch | zaproxy | 0 |
| Apache Software Foundation | Apache Log4j2 | 2.0-beta9 |
| amazon:2 | java-1.7.0-openjdk-accessibility | 0 |
| amazon:2 | java-1.7.0-openjdk-demo | 0 |
| amazon:2 | java-1.8.0-openjdk-headless | 0 |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 | 2.0.0, 1.10.0, 1.11.0 |
| Maven | org.apache.logging.log4j:log4j | 2.4.0, 2.13.0, 2.0 |
| amazon:2 | java-1.8.0-openjdk-demo-debug | 0 |
| arch | openfire | 0 |
| amazon:2 | java-1.8.0-openjdk-accessibility | 0 |
| amazon:2 | java-1.8.0-openjdk-debug | 0 |
| amazon:2 | java-1.8.0-openjdk-javadoc-debug | 0 |
| amazon:2 | java-1.7.0-openjdk-javadoc | 0 |
| amazon:2 | java-11-amazon-corretto-headless | 0 |
| amazon:2 | java-11-amazon-corretto | 0 |
| amazon:2 | java-1.7.0-openjdk | 0 |
| amazon:2 | java-1.8.0-openjdk | 0 |
| amazon:2 | java-1.8.0-openjdk-headless-debug | 0 |
…and 26 more
Timeline
- Dec 6, 2021 VulnCheck KEV Exploitation (1180 in total, the first dated here)
- Dec 9, 2021 VulnCheck XDB Entry (182 in total, the first dated here)
- Dec 10, 2021 CVE Published
- Dec 10, 2021 CISA KEV Added
- Dec 10, 2021 PoC Published (109 in total, the first dated here)
- Dec 11, 2021 EPSS Score (30 in total, the first dated here)
- Mar 18, 2026 Security Advisory (66 in total, the first dated here)
- Mar 23, 2026 Distribution Patch (38 in total, the first dated here)
- Jul 17, 2026 Coalition ESS Score
- Nov 5, 2026 CrowdSec Sighting (26 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-44228
vulnetix vdb fixes CVE-2021-44228
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-44228/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [oss-security] 20211210 CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints mailing-list
- [oss-security] 20211210 Re: CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints mailing-list
- 20211210 Vulnerability in Apache Log4j Library Affecting Cisco Products: December 2021 vendor-advisory
- [oss-security] 20211210 Re: CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints mailing-list
- DSA-5020 vendor-advisory
- [debian-lts-announce] 20211212 [SECURITY] [DLA 2842-1] apache-log4j2 security update mailing-list
- FEDORA-2021-f0f501d01f vendor-advisory
- Microsoft’s Response to CVE-2021-44228 Apache Log4j 2 vendor-advisory
- [oss-security] 20211213 Re: CVE-2021-4104: Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2 mailing-list
- [oss-security] 20211213 CVE-2021-4104: Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2 mailing-list
- [oss-security] 20211214 CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack mailing-list
- VU#930724 third-party-advisory
…and 65 more