CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
Known exploited
CISA added this CVE to its list of known exploited vulnerabilities on 10 Dec 2021. US federal agencies had to act by 24 Dec 2021.
- Name
- Apache Log4j2 Remote Code Execution Vulnerability
- Required action
- For all affected software assets for which updates exist, the only acceptable remediation actions are: 1) Apply updates; OR 2) remove affected assets from agency networks. Temporary mitigations using one of the measures provided at https://www.cisa.gov/uscert/ed-22-02-apache-log4j-recommended-mitigation-measures are only acceptable until updates are available.
- Ransomware
- Known to be used in ransomware campaigns
- Notes
- https://nvd.nist.gov/vuln/detail/CVE-2021-44228
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 99.9%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.9% of all scored CVEs. Scores of 26 Nov 2026.
The assessment of CISA (SSVC, 4 Feb 2025):
- Exploitation
- active: CISA has reliable evidence of exploitation in the wild
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-20 Improper Input Validation
- CWE-400 Uncontrolled Resource Consumption
- CWE-502 Deserialization of Untrusted Data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Apache Log4j2 |
affected from 2.0-beta9, before log4j-core* (unaffected from 2.3.1, affected from 2.4, unaffected from 2.12.2, affected from 2.13.0, unaffected from 2.15.0)
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in their own package version, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-44228 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-44228RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-44228Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image; it prints the installed and the fixed version when a package is affected:
trivy rootfs --scanners vuln / | grep CVE-2021-44228
trivy image --scanners vuln IMAGE | grep CVE-2021-44228
Patchbrief matches the package lists of your Linux servers and containers every day against the Trivy vulnerability database, which covers the packages of Linux distributions and language packages (npm, PyPI, Go, Maven and others), and sends one digest with the command that fixes each problem. Install the agent.
References
Advisories
- 20211210 Vulnerability in Apache Log4j Library Affecting Cisco Products: December 2021 tools.cisco.com · vendor advisory
- DSA-5020 debian.org · vendor advisory
- FEDORA-2021-f0f501d01f lists.fedoraproject.org · vendor advisory
- Microsoft’s Response to CVE-2021-44228 Apache Log4j 2 msrc-blog.microsoft.com · vendor advisory
- VU#930724 kb.cert.org · third party advisory
- FEDORA-2021-66d6c484f3 lists.fedoraproject.org · vendor advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-44228 cisa.gov · government resource
Other references
- https://logging.apache.org/log4j/2.x/security.html logging.apache.org
- [oss-security] 20211210 CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled LDAP… openwall.com · mailing list
- [oss-security] 20211210 Re: CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled… openwall.com · mailing list
- [oss-security] 20211210 Re: CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled… openwall.com · mailing list
- https://security.netapp.com/advisory/ntap-20211210-0007/ security.netapp.com
- http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html packetstormsecurity.com
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032 psirt.global.sonicwall.com
- https://www.oracle.com/security-alerts/alert-cve-2021-44228.html oracle.com
- [debian-lts-announce] 20211212 [SECURITY] [DLA 2842-1] apache-log4j2 security update lists.debian.org · mailing list
- [oss-security] 20211213 Re: CVE-2021-4104: Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2 openwall.com · mailing list
- [oss-security] 20211213 CVE-2021-4104: Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2 openwall.com · mailing list
- [oss-security] 20211214 CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern… openwall.com · mailing list
33 more
- https://twitter.com/kurtseifried/status/1469345530182455296 twitter.com
- https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf cert-portal.siemens.com
- http://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.html packetstormsecurity.com
- http://packetstormsecurity.com/files/165270/Apache-Log4j2-2.14.1-Remote-Code-Execution.html packetstormsecurity.com
- http://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.html packetstormsecurity.com
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html intel.com
- [oss-security] 20211215 Re: CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern… openwall.com · mailing list
- http://packetstormsecurity.com/files/165282/Log4j-Payload-Generator.html packetstormsecurity.com
- http://packetstormsecurity.com/files/165281/Log4j2-Log4Shell-Regexes.html packetstormsecurity.com
- http://packetstormsecurity.com/files/165307/Log4j-Remote-Code-Execution-Word-Bypassing.html packetstormsecurity.com
- http://packetstormsecurity.com/files/165311/log4j-scan-Extensive-Scanner.html packetstormsecurity.com
- http://packetstormsecurity.com/files/165306/L4sh-Log4j-Remote-Code-Execution.html packetstormsecurity.com
- https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf cert-portal.siemens.com
- http://packetstormsecurity.com/files/165371/VMware-Security-Advisory-2021-0028.4.html packetstormsecurity.com
- https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf cert-portal.siemens.com
- https://www.oracle.com/security-alerts/cpujan2022.html oracle.com
- http://packetstormsecurity.com/files/165532/Log4Shell-HTTP-Header-Injection.html packetstormsecurity.com
- https://github.com/cisagov/log4j-affected-db/blob/develop/SOFTWARE-LIST.md github.com
- http://packetstormsecurity.com/files/165642/VMware-vCenter-Server-Unauthenticated-Log4Shell-JNDI-Injection-Remote-Code-Execution.html packetstormsecurity.com
- http://packetstormsecurity.com/files/165673/UniFi-Network-Application-Unauthenticated-Log4Shell-Remote-Code-Execution.html packetstormsecurity.com
- 20220314 APPLE-SA-2022-03-14-7 Xcode 13.3 seclists.org · mailing list
- https://www.bentley.com/en/common-vulnerability-exposure/be-2022-0001 bentley.com
- https://github.com/cisagov/log4j-affected-db github.com
- https://support.apple.com/kb/HT213189 support.apple.com
- https://www.oracle.com/security-alerts/cpuapr2022.html oracle.com
- https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-44228 github.com
- https://www.nu11secur1ty.com/2021/12/cve-2021-44228.html nu11secur1ty.com
- 20220721 Open-Xchange Security Advisory 2022-07-21 seclists.org · mailing list
- http://packetstormsecurity.com/files/167794/Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.html packetstormsecurity.com
- http://packetstormsecurity.com/files/167917/MobileIron-Log4Shell-Remote-Command-Execution.html packetstormsecurity.com
- 20221208 Intel Data Center Manager <= 5.1 Local Privileges Escalation seclists.org · mailing list
- http://packetstormsecurity.com/files/171626/AD-Manager-Plus-7122-Remote-Code-Execution.html packetstormsecurity.com
Guides
- What is a CVE? IDs, CNAs and the CVE List What a CVE ID names, who assigns it, what a CVE record contains and what the states RESERVED, PUBLISHED and REJECTED mean.
- CVSS scores explained: v3.1, v4.0 and why 9.8 is not your risk How to read a CVSS vector, what changed in CVSS v4.0, and why the base score alone is a poor way to decide what to patch first.
- CISA KEV explained: the list of known exploited vulnerabilities What the CISA Known Exploited Vulnerabilities catalog is, how a CVE gets on it, what the fields mean and how to check your servers against it.
- CWE explained: weakness types behind CVEs CVE names one bug, CWE names the kind of mistake. How CWE IDs appear in CVE records, what the Top 25 says, and how to use them.
- What is an SBOM? CycloneDX, SPDX and package URLs in practice An SBOM lists every package in an image or on a server. How CycloneDX and SPDX differ, what a purl is, and how to make and scan an SBOM with Trivy.
- CVE, GHSA, OSV, DSA, USN, RHSA: vulnerability IDs and how they relate Why one bug has five IDs, what each prefix means, which one to use in a ticket, and how to follow aliases from a CVE to the package that fixes it.
- Scan Java dependencies in Maven and Gradle projects List what a Maven or Gradle build resolves, lock Gradle versions, scan the result with Trivy or OWASP Dependency-Check and pin fixed versions.
- What to do when a known exploited CVE hits your server A CVE from the CISA KEV list matched one of your servers. Confirm it, contain it, fix it, look for signs of use, and write down what you did.
- Log4Shell (CVE-2021-44228): what happened and how to check for it today How a logged string led to remote code execution in Java apps, the follow-up CVEs, how to find log4j-core on a server and in images, and what to learn.
Source: the record CVE-2021-44228 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.