CVE-2021-44228 (Log4Shell) — Remote code injection in log4j-core
Remote code injection in Log4j
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Does your project use an affected org.apache.logging.log4j:log4j-core version?
Paste your pom.xml to check it for CVE-2021-44228 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
Log4j versions prior to 2.16.0 are subject to a remote code execution vulnerability via the ldap JNDI parser. As per Apache's Log4j security guide: Apache Log4j2 <=2.14.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.16.0, this behavior has been disabled by default.
Log4j version 2.15.0 contained an earlier fix for the vulnerability, but that patch did not disable attacker-controlled JNDI lookups in all situations. For more information, see the Updated advice for version 2.16.0 section of this advisory.
Impact
Logging untrusted or user controlled data with a vulnerable version of Log4J may result in Remote Code Execution (RCE) against your application. This includes untrusted data included in logged errors such as exception traces, authentication failures, and other unexpected vectors of user controlled input.
Affected versions
Any Log4J version prior to v2.15.0 is affected to this specific issue.
The v1 branch of Log4J which is considered End Of Life (EOL) is vulnerable to other RCE vectors so the recommendation is to still update to 2.16.0 where possible.
Security releases
Additional backports of this fix have been made available in versions 2.3.1, 2.12.2, and 2.12.3
Affected packages
Only the org.apache.logging.log4j:log4j-core package is directly affected by this vulnerability. The org.apache.logging.log4j:log4j-api should be kept at the same version as the org.apache.logging.log4j:log4j-core package to ensure compatability if in use.
Remediation Advice
Updated advice for version 2.16.0
The Apache Logging Services team provided updated mitigation advice upon the release of version 2.16.0, which disables JNDI by default and completely removes support for message lookups. Even in version 2.15.0, lookups used in layouts to provide specific pieces of context information will still recursively resolve, possibly triggering JNDI lookups. This problem is being tracked as CVE-2021-45046. More information is available on the GitHub Security Advisory for CVE-2021-45046.
Users who want to avoid attacker-controlled JNDI lookups but cannot upgrade to 2.16.0 must ensure that no such lookups resolve to attacker-provided data and ensure that the the JndiLookup class is not loaded.
Please note that Log4J v1 is End Of Life (EOL) and will not receive patches for this issue. Log4J v1 is also vulnerable to other RCE vectors and we recommend you migrate to Log4J 2.16.0 where possible.
Advisory Timeline
- First published December 10, 2021 (1812 days ago).
- Last revised October 22, 2025 — 1413 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 0 days after publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 2.3.1 for org.apache.logging.log4j:log4j-core -->
<!-- Update pom.xml dependency version to 2.12.2 for org.apache.logging.log4j:log4j-core -->
<!-- Update pom.xml dependency version to 2.15.0 for org.apache.logging.log4j:log4j-core -->
<!-- Update pom.xml dependency version to 1.10.8 for org.ops4j.pax.logging:pax-logging-log4j2 -->
<!-- Update pom.xml dependency version to 1.11.10 for org.ops4j.pax.logging:pax-logging-log4j2 -->
<!-- Update pom.xml dependency version to 1.9.2 for org.ops4j.pax.logging:pax-logging-log4j2 -->
<!-- Update pom.xml dependency version to 2.0.11 for org.ops4j.pax.logging:pax-logging-log4j2 -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (10)
Affects 1 ecosystem: Maven (5).
| Package | Fixed In |
|---|---|
| org.apache.logging.log4j:log4j-core Maven · Affected: 2.0, 2.0-beta9, 2.0-rc1, 2.0-rc2 (+5 more) | 2.3.1 |
| org.apache.logging.log4j:log4j-core Maven · Affected: 2.10.0, 2.11.0, 2.11.1, 2.11.2 (+14 more) | 2.12.2 |
| org.apache.logging.log4j:log4j-core Maven · Affected: 2.13.0, 2.13.1, 2.13.2, 2.13.3 (+2 more) | 2.15.0 |
| uk.co.nichesolutions.logging.log4j:log4j-core Maven · Affected: 2.6.3-CUSTOM | No fix available |
| org.xbib.elasticsearch:log4j Maven · Affected: 6.3.2.1 | No fix available |
| com.guicedee.services:log4j-core Maven · Affected: 1.0.10.0, 1.0.10.0-jre13, 1.0.10.0-jre14, 1.0.10.1 (+358 more) | Range-based data available |
| org.ops4j.pax.logging:pax-logging-log4j2 Maven · Affected: 1.10.0, 1.10.1, 1.10.2, 1.10.3 (+4 more) | 1.10.8 |
| org.ops4j.pax.logging:pax-logging-log4j2 Maven · Affected: 1.11.0, 1.11.1, 1.11.2, 1.11.3 (+6 more) | 1.11.10 |
| org.ops4j.pax.logging:pax-logging-log4j2 Maven · Affected: 1.8.0, 1.8.1, 1.8.2, 1.8.3 (+6 more) | 1.9.2 |
| org.ops4j.pax.logging:pax-logging-log4j2 Maven · Affected: 2.0.0, 2.0.1, 2.0.10, 2.0.2 (+7 more) | 2.0.11 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-44228ADVISORY
- https://github.com/apache/logging-log4j2/pull/608WEB
- https://github.com/github/advisory-database/pull/5501WEB
- https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdfWEB
- https://packetstormsecurity.com/files/165673/UniFi-Network-Application-Unauthenticated-Log4Shell-Remote-Code-Execution.htmlWEB
- https://packetstormsecurity.com/files/167794/Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.htmlWEB
- https://packetstormsecurity.com/files/167917/MobileIron-Log4Shell-Remote-Command-Execution.htmlWEB
- https://packetstormsecurity.com/files/171626/AD-Manager-Plus-7122-Remote-Code-Execution.htmlWEB
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032WEB
- https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbdWEB
- https://seclists.org/fulldisclosure/2022/Dec/2WEB
- https://seclists.org/fulldisclosure/2022/Jul/11WEB
- https://seclists.org/fulldisclosure/2022/Mar/23WEB
- https://security.netapp.com/advisory/ntap-20211210-0007WEB
- https://support.apple.com/kb/HT213189WEB
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbdWEB
- https://twitter.com/kurtseifried/status/1469345530182455296WEB
- https://www.bentley.com/en/common-vulnerability-exposure/be-2022-0001WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-44228WEB
- https://www.debian.org/security/2021/dsa-5020WEB
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.htmlWEB
- https://www.kb.cert.org/vuls/id/930724WEB
- https://www.nu11secur1ty.com/2021/12/cve-2021-44228.htmlWEB
- https://www.oracle.com/security-alerts/alert-cve-2021-44228.htmlWEB
- https://www.oracle.com/security-alerts/cpuapr2022.htmlWEB
- https://www.oracle.com/security-alerts/cpujan2022.htmlWEB
- https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdfWEB
- https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdfWEB
- https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdfWEB
- https://github.com/advisories/GHSA-7rjr-3q55-vv33ADVISORY
- https://github.com/apache/logging-log4j2PACKAGE
- https://github.com/cisagov/log4j-affected-dbWEB
- https://github.com/cisagov/log4j-affected-db/blob/develop/SOFTWARE-LIST.mdWEB
- https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-44228WEB
- https://github.com/tangxiaofeng7/apache-log4j-pocWEB
- https://issues.apache.org/jira/browse/LOG4J2-3198WEB
- https://issues.apache.org/jira/browse/LOG4J2-3201WEB
- https://issues.apache.org/jira/browse/LOG4J2-3214WEB
- https://issues.apache.org/jira/browse/LOG4J2-3221WEB
- https://lists.debian.org/debian-lts-announce/2021/12/msg00007.htmlWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M5CSVUNV4HWZZXGOKNSK6L7RPM7BOKIBWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFMWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M5CSVUNV4HWZZXGOKNSK6L7RPM7BOKIBWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFMWEB
- https://logging.apache.org/log4j/2.x/changes-report.html#a2.15.0WEB
- https://logging.apache.org/log4j/2.x/manual/lookups.html#JndiLookupWEB
- https://logging.apache.org/log4j/2.x/manual/migration.htmlWEB
- https://logging.apache.org/log4j/2.x/security.htmlWEB
- https://msrc-blog.microsoft.com/2021/12/11/microsofts-response-to-cve-2021-44228-apache-log4j2WEB
- https://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.htmlWEB
- https://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.htmlWEB
- https://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.htmlWEB
- https://packetstormsecurity.com/files/165270/Apache-Log4j2-2.14.1-Remote-Code-Execution.htmlWEB
- https://packetstormsecurity.com/files/165281/Log4j2-Log4Shell-Regexes.htmlWEB
- https://packetstormsecurity.com/files/165282/Log4j-Payload-Generator.htmlWEB
- https://packetstormsecurity.com/files/165306/L4sh-Log4j-Remote-Code-Execution.htmlWEB
- https://packetstormsecurity.com/files/165307/Log4j-Remote-Code-Execution-Word-Bypassing.htmlWEB
- https://packetstormsecurity.com/files/165311/log4j-scan-Extensive-Scanner.htmlWEB
- https://packetstormsecurity.com/files/165371/VMware-Security-Advisory-2021-0028.4.htmlWEB
- https://packetstormsecurity.com/files/165532/Log4Shell-HTTP-Header-Injection.htmlWEB
- https://packetstormsecurity.com/files/165642/VMware-vCenter-Server-Unauthenticated-Log4Shell-JNDI-Injection-Remote-Code-Execution.htmlWEB
- https://www.openwall.com/lists/oss-security/2021/12/10/1WEB
- https://www.openwall.com/lists/oss-security/2021/12/10/2WEB
- https://www.openwall.com/lists/oss-security/2021/12/10/3WEB
- https://www.openwall.com/lists/oss-security/2021/12/13/1WEB
- https://www.openwall.com/lists/oss-security/2021/12/13/2WEB
- https://www.openwall.com/lists/oss-security/2021/12/14/4WEB
- https://www.openwall.com/lists/oss-security/2021/12/15/3WEB
Frequently Asked Questions
- What is CVE-2021-44228?
- Remote code injection in Log4j. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2021-44228?
- CVE-2021-44228 affects org.apache.logging.log4j:log4j-core, uk.co.nichesolutions.logging.log4j:log4j-core and org.xbib.elasticsearch:log4j (and 2 more). It has a 100.0% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-44228 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 100% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: December 10, 2021
Remediation deadline: December 24, 2021
Also Known As
Related CVEs
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2021-45046CRITICAL
Incomplete fix for Apache Log4j vulnerability
- CVE-2021-45105HIGH
Apache Log4j2 vulnerable to Improper Input Validation and Uncontrolled Recursion
- CVE-2026-34480MEDIUM
Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters
- CVE-2026-34477MEDIUM
Apache Log4j Core: `verifyHostName` attribute silently ignored in TLS configuration
- CVE-2021-44832MEDIUM
Improper Input Validation and Injection in Apache Log4j2
- CVE-2026-34479MEDIUM
Apache Log4j 1 to Log4j 2 bridge: silent log event loss in Log4j1XmlLayout due to unescaped XML 1.0 forbidden characters
- CVE-2025-68161MEDIUM
Apache Log4j does not verify the TLS hostname in its Socket Appender