CVE-2021-45105
JSON

5.9medium

Apache Log4j2 does not always protect from infinite recursion in lookup evaluation

Severity
5.9medium CVSS:3.1 by CISA-ADP
Exploit likelihood
99.9% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-p6xc-xr62-6r2g

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.

Affected

Product or packageVersionsReported by
Apache Software Foundation Apache Log4j2from log4j-core before 2.17.0CVE List
org.apache.logging.log4j:log4j-core (Maven)from 2.4.0 before 2.12.3, from 2.13.0 before 2.17.0, before 2.3.1GitHub Advisory Database
org.ops4j.pax.logging:pax-logging-log4j2 (Maven)from 1.8.0 before 1.9.2, from 1.10.0 before 1.10.9, from 1.11.0 before 1.11.12, from 2.0.0 before 2.0.13GitHub Advisory Database
apache log4jfrom 2.0 before 2.3.1, from 2.4 before 2.12.3, from 2.13.0 up to 2.16.0NVD
netapp cloud_managerNot specifiedNVD
debian debian_linux10.0, 11.0NVD
sonicwall email_securityup to 10.0.12NVD
sonicwall network_security_managerfrom 2.0 before 3.0NVD
sonicwall web_application_firewallfrom 3.0.0 before 3.1.0NVD
sonicwall 6bk1602-0aa12-0tp0_firmwarebefore 2.7.0NVD
sonicwall 6bk1602-0aa22-0tp0_firmwarebefore 2.7.0NVD
sonicwall 6bk1602-0aa32-0tp0_firmwarebefore 2.7.0NVD

All scores

CISA-ADP5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

CWE-20CWE-674

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3) 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 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.

NVD (es)

Apache Log4j2 versiones 2.0-alpha1 hasta 2.16.0 (excluyendo las versiones 2.12.3 y 2.3.1) no protegían de la recursión no controlada de las búsquedas autorreferenciales. Esto permite a un atacante con control sobre los datos de Thread Context Map causar una denegación de servicio cuando es interpretada una cadena diseñada. Este problema se ha corregido en Log4j versiones 2.17.0, 2.12.3 y 2.3.1

References

https://logging.apache.org/log4j/2.x/security.htmlrelease-notes, vendor-advisory, web
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032third-party-advisory, web
https://www.kb.cert.org/vuls/id/930724third-party-advisory, us-government-resource, web
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbdthird-party-advisory, vendor-advisory, web
http://www.openwall.com/lists/oss-security/2021/12/19/1mailing-list, mitigation, third-party-advisory, web
https://www.debian.org/security/2021/dsa-5024third-party-advisory, vendor-advisory, web
https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdfthird-party-advisory, web
https://security.netapp.com/advisory/ntap-20211218-0001/third-party-advisory
https://www.zerodayinitiative.com/advisories/ZDI-21-1541/third-party-advisory, vdb-entry
https://cert-portal.siemens.com/productcert/pdf/ssa-501673.pdfthird-party-advisory, web
https://www.oracle.com/security-alerts/cpujan2022.htmlpatch, third-party-advisory, web
https://www.oracle.com/security-alerts/cpuapr2022.htmlpatch, third-party-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2021-45105 changed 2026-05-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-p6xc-xr62-6r2g changed 2026-06-09CC-BY-4.0
NVDCVE-2021-45105 changed 2026-08-25Public domain