← Vulnerability feed

Vulnerability record · CVE-2021-45046 · published 14 December 2021

CVE-2021-45046: Apache Log4j 2.15.0 Incomplete Fix Allows JNDI Lookup Injection

Apache · Log4j

The fix for CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. When a non-default Pattern Layout uses a Context Lookup (e.g., $${ctx:loginId}) or Thread Context Map pattern (%X, %mdc, %MDC), an attacker who controls that input can inject a JNDI Lookup pattern, causing an information leak and remote code execution in some environments and local code execution in all environments.

9.0 CVSS 3.1 Critical CISA KEV since 1 May 2023 Known ransomware use EPSS 100% · top 0.1% CWE-917 · Expression language injection
9.0CVSS 3.1 base score, v2 5.1
100%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
55Affected product versions listed by NVD
43References
17 Jun 2026Last modified by NVD

Description

It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allows attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in an information leak and remote code execution in some environments and local code execution in all environments. Log4j 2.16.0 (Java 8) and 2.12.2 (Java 7) fix this issue by removing support for message lookup patterns and disabling JNDI functionality by default.

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityCVSS 9.0 critical, CISA KEV listed with known ransomware use, and EPSS above 99.9th percentile make this an urgent patch-first issue despite the non-default configuration precondition.

What it is

The fix for CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. When a non-default Pattern Layout uses a Context Lookup (e.g., $${ctx:loginId}) or Thread Context Map pattern (%X, %mdc, %MDC), an attacker who controls that input can inject a JNDI Lookup pattern, causing an information leak and remote code execution in some environments and local code execution in all environments.

Impact

An attacker can leak sensitive information and, in some environments, achieve remote code execution; local code execution is possible in all environments. This can lead to full compromise of the affected application and its host.

Attack surface

Reachable over the network (AV:N) with no authentication (PR:N) and no user interaction (UI:N), but exploitation requires a non-default logging configuration and attacker control over Thread Context Map input data. The high attack complexity (AC:H) reflects those configuration and input-control preconditions.

Exploitation

CVE-2021-45046 is listed in CISA KEV with known ransomware campaign use, and EPSS shows a 30-day probability of 0.99977 (99.98th percentile). Reference tags include Mitigation, Patch, Vendor Advisory and Third Party Advisory, indicating public mitigation and patch guidance is available.

What to do

  • Upgrade to Log4j 2.16.0 (Java 8) or 2.12.2 (Java 7), which remove message lookup patterns and disable JNDI by default.
  • If immediate upgrade is not possible, remove JndiLookup from the classpath and disable message lookups per vendor mitigation guidance.
  • Audit logging configurations for non-default Pattern Layouts using $${ctx:...}, %X, %mdc or %MDC and remove or restrict them.
  • Apply vendor patches for downstream products listed as affected (Apache, Intel, Siemens, Debian, SonicWall, Fedora, CVAT).
  • Treat any Thread Context Map input as untrusted and sanitize or reject JNDI-style lookup strings.

Detection

  • Search application and WAF logs for JNDI lookup strings such as ${jndi:ldap://, ${jndi:rmi://, ${jndi:dns:// and obfuscated variants in MDC/Thread Context input.
  • Monitor for outbound LDAP, RMI or DNS connections from Java application servers to unexpected external hosts.
  • Alert on logging configuration changes that introduce $${ctx:...}, %X, %mdc or %MDC patterns.
  • Inventory Log4j versions across the estate and flag any 2.15.0 or earlier deployments.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2021-45046 to the Known Exploited Vulnerabilities catalog on 1 May 2023 as "Apache Log4j2 Deserialization of Untrusted Data Vulnerability". CISA reports known use in ransomware campaigns. Required action: Apply updates per vendor instructions. Federal deadline 22 May 2023.

Affected products

55 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.openwall.com/lists/oss-security/2021/12/14/4 Mailing ListMitigationThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/12/15/3 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/12/18/1 Mailing ListThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM Mailing ListRelease Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWY Mailing ListRelease Notes
https://logging.apache.org/log4j/2.x/security.html MitigationRelease NotesVendor Advisory
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032 Third Party Advisory
https://security.gentoo.org/glsa/202310-16 Third Party Advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd Third Party Advisory
https://www.cve.org/CVERecord?id=CVE-2021-44228 Not Applicable
https://www.debian.org/security/2021/dsa-5022 Third Party Advisory
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html Third Party Advisory
https://www.kb.cert.org/vuls/id/930724 Third Party AdvisoryUS Government Resource
https://www.oracle.com/security-alerts/alert-cve-2021-44228.html Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html Third Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujul2022.html Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/12/14/4 Mailing ListMitigationThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/12/15/3 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/12/18/1 Mailing ListThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM Mailing ListRelease Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWY Mailing ListRelease Notes
https://logging.apache.org/log4j/2.x/security.html MitigationRelease NotesVendor Advisory
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032 Third Party Advisory
https://security.gentoo.org/glsa/202310-16 Third Party Advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd Third Party Advisory
https://www.cve.org/CVERecord?id=CVE-2021-44228 Not Applicable
https://www.debian.org/security/2021/dsa-5022 Third Party Advisory
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html Third Party Advisory
https://www.kb.cert.org/vuls/id/930724 Third Party AdvisoryUS Government Resource
https://www.oracle.com/security-alerts/alert-cve-2021-44228.html Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html Third Party Advisory

Track CVE-2021-45046 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2021-45046), CISA KEV, FIRST EPSS (scores of 2026-09-16). This page is refreshed as NVD updates the record.