← Vulnerability feed

Vulnerability record · CVE-2021-45105 · published 18 December 2021

CVE-2021-45105: Apache Log4j2 uncontrolled recursion in self-referential lookups causes DoS

Apache · Log4j

Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1) fail to protect against uncontrolled recursion from self-referential lookups. An attacker who controls Thread Context Map data can supply a crafted string that triggers infinite recursion and a denial of service. It was fixed in Log4j 2.17.0, 2.12.3, and 2.3.1.

5.9 CVSS 3.1 Medium EPSS 100% · top 0.1% CWE-20 · Improper input validationCWE-674 · CWE-674
5.9CVSS 3.1 base score, v2 4.3
100%EPSS exploitation probability, 30 days
NoNot in CISA KEV
116Affected product versions listed by NVD
26References
25 Aug 2026Last modified by NVD

Description

Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1) did not protect from uncontrolled recursion from self-referential lookups. This allows an attacker with control over Thread Context Map data to cause a denial of service when a crafted string is interpreted. This issue was fixed in Log4j 2.17.0, 2.12.3, and 2.3.1.

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

Automated analysis

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

high priorityCVSS is only medium (5.9) and exploitation requires control of Thread Context Map data, but the extremely high EPSS score and broad Log4j2 exposure make this a high-priority denial-of-service risk.

What it is

Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1) fail to protect against uncontrolled recursion from self-referential lookups. An attacker who controls Thread Context Map data can supply a crafted string that triggers infinite recursion and a denial of service. It was fixed in Log4j 2.17.0, 2.12.3, and 2.3.1.

Impact

An attacker can crash or hang the logging path, causing denial of service for the affected application. There is no confidentiality or integrity impact per the CVSS vector.

Attack surface

Reachable over the network (AV:N) with no authentication (PR:N) and no user interaction (UI:N), but exploitation requires high complexity (AC:H) because the attacker must control Thread Context Map data that is interpreted as a lookup string.

Exploitation

Not listed in CISA KEV and no ransomware associations are documented, but EPSS is very high (0.99999, 99.991st percentile), indicating substantial observed exploitation activity; references include vendor advisories and mitigations.

What to do

  • Upgrade Log4j2 to 2.17.0, or to 2.12.3 or 2.3.1 on the respective maintenance branches.
  • If immediate upgrade is not possible, apply the mitigation guidance in the Apache Log4j security page and the Openwall oss-security post (e.g., restrict lookup evaluation in message lookups).
  • Inventory applications and third-party products that bundle Log4j2 and confirm which versions are in use, including the listed vendor products.
  • Remove or restrict untrusted input to Thread Context Map fields and avoid logging attacker-controlled data through lookup patterns.
  • Monitor vendor advisories (Oracle, NetApp, Debian, SonicWall, Siemens, Cisco) for product-specific patches and apply them.

Detection

  • Search application and system logs for repeated or recursive lookup patterns such as ${${...}} or nested ${} expressions in logged messages.
  • Monitor for sudden logging failures, stack overflow errors, or application hangs correlated with requests containing lookup-like strings.
  • Track Log4j2 versions in deployed artifacts and alert on any instance below 2.17.0 (or below 2.12.3/2.3.1 on those branches).
  • Watch for abnormal CPU or thread growth in Java processes that use Log4j2, especially after requests that populate Thread Context Map data.

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

Affected products

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

References

LinkTags
http://www.openwall.com/lists/oss-security/2021/12/19/1 Mailing ListMitigationThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-501673.pdf Third Party Advisory
https://logging.apache.org/log4j/2.x/security.html Release NotesVendor Advisory
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032 Third Party Advisory
https://security.netapp.com/advisory/ntap-20211218-0001/ Third Party Advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd Third Party Advisory
https://www.debian.org/security/2021/dsa-5024 Third Party Advisory
https://www.kb.cert.org/vuls/id/930724 Third Party AdvisoryUS Government Resource
https://www.oracle.com/security-alerts/cpuapr2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujul2022.html Third Party Advisory
https://www.zerodayinitiative.com/advisories/ZDI-21-1541/ Third Party AdvisoryVDB Entry
http://www.openwall.com/lists/oss-security/2021/12/19/1 Mailing ListMitigationThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-501673.pdf Third Party Advisory
https://logging.apache.org/log4j/2.x/security.html Release NotesVendor Advisory
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032 Third Party Advisory
https://security.netapp.com/advisory/ntap-20211218-0001/ Third Party Advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd Third Party Advisory
https://www.debian.org/security/2021/dsa-5024 Third Party Advisory
https://www.kb.cert.org/vuls/id/930724 Third Party AdvisoryUS Government Resource
https://www.oracle.com/security-alerts/cpuapr2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujul2022.html Third Party Advisory
https://www.zerodayinitiative.com/advisories/ZDI-21-1541/ Third Party AdvisoryVDB Entry

Track CVE-2021-45105 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-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

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