# CVE-2021-45046: Apache Log4j2 Deserialization of Untrusted Data Vulnerability

- Priority: **Act now**
- Reason: Known ransomware use (CISA, 01-05-2023)
- Next step: Check the vendor advisory
- Status: published
- Published: 2021-12-14 · Modified: 2025-10-21
- Aliases: MGASA-2021-0566, UBUNTU-CVE-2021-45046, DEBIAN-CVE-2021-45046, DSA-5022-1, GHSA-7rjr-3q55-vv33
- Record: https://cvemate.com/vulnerability/CVE-2021-45046 · JSON: https://cvemate.com/vulnerability/CVE-2021-45046/json

## Description

```text
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.
```

## Signals

- CVSS: 9 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS: 99.978%, percentile 99.978%, as of 2026-12-04
- Known exploited (KEV): CISA listed 2023-05-01, ENISA not listed, CIRCL not listed
- Ransomware use: known
- Public exploits: 1 (metasploit)

## Affected (first 20 of 48)

- apache software foundation apache log4j: ≥ Apache Log4j2, \< 2.16.0
- apache log4j: ≥ 2.0.1, \< 2.12.2 \| ≥ 2.13.0, \< 2.16.0 \| 2.0 \| 2.0:beta9 \| 2.0:rc1 \| 2.0:rc2
- cvat computer\_vision\_annotation\_tool: na
- debian apache-log4j2 (Debian): \< 2.16.0-1 \| \< 2.16.0-1~deb10u1 \| \< 2.16.0-1~deb11u1
- ubuntu apache-log4j2 (Ubuntu): \< 2.16.0-0.20.04.1
- debian debian\_linux: 10.0 \| 11.0
- fedoraproject fedora: 34 \| 35
- intel audio\_development\_kit: na
- intel datacenter\_manager: na
- intel genomics\_kernel\_library: na
- intel oneapi: na
- intel secure\_device\_onboard: na
- intel sensor\_solution\_firmware\_development\_kit: na
- intel system\_debugger: na
- intel system\_studio: na
- mageia log4j (Mageia): \< 2.16.0-1.mga8
- org.apache.logging.log4j log4j-core (Maven): ≥ 2.13.0, \< 2.16.0 \| ≥ 2.4.0, \< 2.12.2 \| \< 2.3.1
- org.ops4j.pax.logging pax-logging-log4j2 (Maven): ≥ 1.8.0, \< 1.9.2 \| ≥ 1.10.0, \< 1.10.8 \| ≥ 1.11.0, \< 1.11.11 \| ≥ 2.0.0, \< 2.0.12
- siemens 6bk1602-0aa12-0tp0\_firmware: \< 2.7.0
- siemens 6bk1602-0aa22-0tp0\_firmware: \< 2.7.0

## References (first 20 of 42)

- <https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032>
- <https://www.oracle.com/security-alerts/alert-cve-2021-44228.html>
- <https://www.cve.org/CVERecord?id=CVE-2021-44228>
- <http://www.openwall.com/lists/oss-security/2021/12/14/4>
- <https://logging.apache.org/log4j/2.x/security.html>
- <https://www.kb.cert.org/vuls/id/930724>
- <https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf>
- <https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html>
- <https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd>
- <http://www.openwall.com/lists/oss-security/2021/12/15/3>
- <https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf>
- <https://www.debian.org/security/2021/dsa-5022>
- <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://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ/>
- <https://www.oracle.com/security-alerts/cpujan2022.html>
- <https://www.oracle.com/security-alerts/cpuapr2022.html>
- <https://www.oracle.com/security-alerts/cpujul2022.html>

---

Data as of 2026-12-05T05:11:11.153Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
