CVE-2021-45105
published medium CVSS 3.1 · 5.9Apache Log4j2 does not always protect from infinite recursion in lookup evaluation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Log4j2log4j-core to < 2.17.0 (affected · custom); changes: affected at 2.13.0, unaffected at 2.12.3, affected at 2.4, unaffected at 2.3.1, affected at 2.0-alpha1 | Version-specific | Not stated | apache |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1733 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bullseye | apache-log4j2 | Advisory build | 2.17.0-1~deb11u1 | DSA-5024-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | log4jnoarch | Advisory build | 2.17.0-lp152.3.12.1 | OPENSUSE-SU-2021:1605-1 |
| Ubuntu | bionic | apache-log4j2 | Advisory build | 2.12.4-0ubuntu0.1 | USN-5222-1 |
| Amazon Linux | AL2 | aws-kinesis-agentnoarch | Listed in advisory | Not stated | ALAS2-2021-1733 |
| Debian | buster | apache-log4j2 | Advisory build | 2.17.0-1~deb10u1 | DSA-5024-1 |
Show 28 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Debian | stretch | apache-log4j2 | Advisory build | 2.12.3-0+deb9u1 | DLA-2852-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | log4j-javadocnoarch | Advisory build | 2.17.0-lp152.3.12.1 | OPENSUSE-SU-2021:1605-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | log4j-jclnoarch | Advisory build | 2.17.0-lp152.3.12.1 | OPENSUSE-SU-2021:1605-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | log4j-slf4jnoarch | Advisory build | 2.17.0-lp152.3.12.1 | OPENSUSE-SU-2021:1605-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4jnoarch | Advisory build | 2.17.0-4.13.1 | OPENSUSE-SU-2021:4118-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4j-javadocnoarch | Advisory build | 2.17.0-4.13.1 | OPENSUSE-SU-2021:4118-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4j-jclnoarch | Advisory build | 2.17.0-4.13.1 | OPENSUSE-SU-2021:4118-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4j-slf4jnoarch | Advisory build | 2.17.0-4.13.1 | OPENSUSE-SU-2021:4118-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jaarch64 | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jppc64le | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4js390x | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jx86_64 | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocaarch64 | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocppc64le | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocs390x | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocx86_64 | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclaarch64 | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclppc64le | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jcls390x | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclx86_64 | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jaarch64 | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jppc64le | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4js390x | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jx86_64 | Advisory build | 2.17.0-1.1 | OPENSUSE-SU-2024:11691-1 |
| Ubuntu | bionic | liblog4j2-java | Advisory build | 2.12.4-0ubuntu0.1 | USN-5222-1 |
| Ubuntu | focal | apache-log4j2 | Advisory build | 2.17.0-0.20.04.1 | USN-5203-1 |
| Ubuntu | focal | liblog4j2-java | Advisory build | 2.17.0-0.20.04.1 | USN-5203-1 |
| Amazon Linux | AL2 | aws-kinesis-agentsrc | Listed in advisory | Not stated | ALAS2-2021-1733 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Log4j2 | log4j-core to < 2.17.0 (affected · custom); changes: affected at 2.13.0, unaffected at 2.12.3, affected at 2.4, unaffected at 2.3.1, affected at 2.0-alpha1 | apache · cna |
Weaknesses
2- CWE-20 CWE-20 Improper Input Validation
- CWE-674 CWE-674: Uncontrolled Recursion
References
13- [oss-security] 20211218 CVE-2021-45105: Apache Log4j2 does not always protect from infinite recursion in lookup evaluation http://www.openwall.com/lists/oss-security/2021/12/19/1
- https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-501673.pdf
- https://logging.apache.org/log4j/2.x/security.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- https://security.netapp.com/advisory/ntap-20211218-0001/
- 20211210 Vulnerabilities in Apache Log4j Library Affecting Cisco Products: December 2021 https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
- DSA-5024 https://www.debian.org/security/2021/dsa-5024
- VU#930724 https://www.kb.cert.org/vuls/id/930724
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.zerodayinitiative.com/advisories/ZDI-21-1541/
Provider assertions
3apache · cna
Apache Log4j2 does not always protect from infinite recursion in lookup evaluation
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c1a991c5768e6150b3b079cd048c7f86bb528a73fb45ffa4acdd2940ee31892c
- Ingested
- 23 Sep 2026, 07:56:43 UTC
- Source record
- Official CVE record