CVE-2021-45046
published critical CVSS 3.1 · 9.0Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Log4jApache Log4j2 to < 2.16.0 | Affected | Not stated | apache |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1730 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1731 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2CORRETTO8-2021-001 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2JAVA-OPENJDK11-2021-001 | 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.16.0-1~deb11u1 | DSA-5022-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | disruptornoarch | Advisory build | 3.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:1601-1 |
Show 66 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | apache-log4j2 | Advisory build | 2.16.0-0.20.04.1 | USN-5197-1 |
| Amazon Linux | AL2 | aws-kinesis-agentnoarch | Listed in advisory | Not stated | ALAS2-2021-1730 |
| Debian | buster | apache-log4j2 | Advisory build | 2.16.0-1~deb10u1 | DSA-5022-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | disruptor-javadocnoarch | Advisory build | 3.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:1601-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | jakarta-servletnoarch | Advisory build | 5.0.0-lp152.2.1 | OPENSUSE-SU-2021:1601-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | jakarta-servlet-javadocnoarch | Advisory build | 5.0.0-lp152.2.1 | OPENSUSE-SU-2021:1601-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | log4jnoarch | Advisory build | 2.16.0-lp152.3.9.1 | OPENSUSE-SU-2021:1601-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | log4j-javadocnoarch | Advisory build | 2.16.0-lp152.3.9.1 | OPENSUSE-SU-2021:1601-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | log4j-jclnoarch | Advisory build | 2.16.0-lp152.3.9.1 | OPENSUSE-SU-2021:1601-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | log4j-slf4jnoarch | Advisory build | 2.16.0-lp152.3.9.1 | OPENSUSE-SU-2021:1601-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | disruptornoarch | Advisory build | 3.4.4-3.3.1 | OPENSUSE-SU-2021:4107-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | disruptor-javadocnoarch | Advisory build | 3.4.4-3.3.1 | OPENSUSE-SU-2021:4107-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | jakarta-servletnoarch | Advisory build | 5.0.0-5.3.1 | OPENSUSE-SU-2021:4107-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | jakarta-servlet-javadocnoarch | Advisory build | 5.0.0-5.3.1 | OPENSUSE-SU-2021:4107-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4jnoarch | Advisory build | 2.13.0-4.6.1 | OPENSUSE-SU-2021:4094-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4jnoarch | Advisory build | 2.16.0-4.10.1 | OPENSUSE-SU-2021:4107-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4j-javadocnoarch | Advisory build | 2.13.0-4.6.1 | OPENSUSE-SU-2021:4094-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4j-javadocnoarch | Advisory build | 2.16.0-4.10.1 | OPENSUSE-SU-2021:4107-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4j-jclnoarch | Advisory build | 2.13.0-4.6.1 | OPENSUSE-SU-2021:4094-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4j-jclnoarch | Advisory build | 2.16.0-4.10.1 | OPENSUSE-SU-2021:4107-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4j-slf4jnoarch | Advisory build | 2.13.0-4.6.1 | OPENSUSE-SU-2021:4094-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | log4j-slf4jnoarch | Advisory build | 2.16.0-4.10.1 | OPENSUSE-SU-2021:4107-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jaarch64 | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jppc64le | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4js390x | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jx86_64 | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocaarch64 | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocppc64le | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocs390x | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocx86_64 | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclaarch64 | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclppc64le | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jcls390x | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclx86_64 | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jaarch64 | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jppc64le | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4js390x | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jx86_64 | Advisory build | 2.16.0-2.1 | OPENSUSE-SU-2024:11681-1 |
| Ubuntu | focal | liblog4j2-java | Advisory build | 2.16.0-0.20.04.1 | USN-5197-1 |
| Amazon Linux | AL2 | aws-kinesis-agentsrc | Listed in advisory | Not stated | ALAS2-2021-1730 |
| Amazon Linux | AL2 | java-1.7.0-openjdkaarch64 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-1.7.0-openjdki686 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-1.7.0-openjdknoarch | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-1.7.0-openjdksrc | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-1.7.0-openjdkx86_64 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-1.8.0-amazon-correttoaarch64 | Listed in advisory | Not stated | ALAS2CORRETTO8-2021-001 |
| Amazon Linux | AL2 | java-1.8.0-amazon-correttosrc | Listed in advisory | Not stated | ALAS2CORRETTO8-2021-001 |
| Amazon Linux | AL2 | java-1.8.0-amazon-correttox86_64 | Listed in advisory | Not stated | ALAS2CORRETTO8-2021-001 |
| Amazon Linux | AL2 | java-1.8.0-openjdkaarch64 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-1.8.0-openjdki686 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-1.8.0-openjdknoarch | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-1.8.0-openjdksrc | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-1.8.0-openjdkx86_64 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-11-amazon-correttoaarch64 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-11-amazon-correttoi686 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-11-amazon-correttonoarch | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-11-amazon-correttosrc | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-11-amazon-correttox86_64 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-11-openjdkaarch64 | Listed in advisory | Not stated | ALAS2JAVA-OPENJDK11-2021-001 |
| Amazon Linux | AL2 | java-11-openjdksrc | Listed in advisory | Not stated | ALAS2JAVA-OPENJDK11-2021-001 |
| Amazon Linux | AL2 | java-11-openjdkx86_64 | Listed in advisory | Not stated | ALAS2JAVA-OPENJDK11-2021-001 |
| Amazon Linux | AL2 | java-17-amazon-correttoaarch64 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-17-amazon-correttoi686 | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-17-amazon-correttonoarch | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-17-amazon-correttosrc | Listed in advisory | Not stated | ALAS2-2021-1731 |
| Amazon Linux | AL2 | java-17-amazon-correttox86_64 | Listed in advisory | Not stated | ALAS2-2021-1731 |
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.
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
- 9.0 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Log4j | Apache Log4j2 to < 2.16.0 (affected · custom) | apache · cna |
Weaknesses
1- CWE-917 CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')
References
22- [oss-security] 20211214 CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack http://www.openwall.com/lists/oss-security/2021/12/14/4
- [oss-security] 20211215 Re: CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack http://www.openwall.com/lists/oss-security/2021/12/15/3
- [oss-security] 20211218 Re: CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack http://www.openwall.com/lists/oss-security/2021/12/18/1
- https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf
- FEDORA-2021-5c9d12a93e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY/
- FEDORA-2021-abbe24e41c https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ/
- https://logging.apache.org/log4j/2.x/security.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- https://security.gentoo.org/glsa/202310-16
- 20211210 Vulnerabilities in Apache Log4j Library Affecting Cisco Products: December 2021 https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-45046
- https://www.cve.org/CVERecord?id=CVE-2021-44228
- DSA-5022 https://www.debian.org/security/2021/dsa-5022
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html
- VU#930724 https://www.kb.cert.org/vuls/id/930724
- https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
Provider assertions
3apache · cna
Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2949c6273808adeb6e3423cd28fdc8e4cf8f6f71daf1db88eb49fbc0c72e7502
- Ingested
- 23 Sep 2026, 07:56:43 UTC
- Source record
- Official CVE record