# CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack

- Severity: Critical 9.0 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: yes. In CISA's catalogue since 2023-05-01; used in ransomware campaigns. Apply updates per vendor instructions.
- Likelihood of exploitation in the next 30 days (EPSS): 99.9%, higher than 99% of CVEs (2026-12-01)
- Published: 2021-12-14T16:55:09.000Z
- Modified: 2026-10-02T20:30:05.438Z
- Also known as: GHSA-7rjr-3q55-vv33
- Weaknesses: CWE-502, CWE-917
- SSVC (CISA-ADP): exploitation active, automatable no, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Log4j: from Apache Log4j2 before 2.16.0
- org.apache.logging.log4j:log4j-core (Maven): from 2.13.0 before 2.16.0; from 2.4.0 before 2.12.2; before 2.3.1
- org.ops4j.pax.logging:pax-logging-log4j2 (Maven): from 1.8.0 before 1.9.2; from 1.10.0 before 1.10.8; from 1.11.0 before 1.11.11; from 2.0.0 before 2.0.12
- apache log4j: from 2.0.1 before 2.12.2; from 2.13.0 before 2.16.0; 2.0
- cvat computer_vision_annotation_tool: no versions given
- intel audio_development_kit: no versions given
- intel datacenter_manager: no versions given
- intel genomics_kernel_library: no versions given
- intel oneapi: no versions given
- intel secure_device_onboard: no versions given
- intel sensor_solution_firmware_development_kit: no versions given
- intel system_debugger: no versions given
- intel system_studio: no versions given
- siemens sppa-t3000_ses3000_firmware: no versions given
- siemens captial: before 2019.1; 2019.1
- siemens comos: no versions given
- siemens desigo_cc_advanced_reports: 4.0; 4.1; 4.2; 5.0; 5.1
- siemens desigo_cc_info_center: 5.0; 5.1
- siemens e-car_operation_center: before 2021-12-13
- siemens energy_engage: 3.1
- siemens energyip: 8.5; 8.6; 8.7; 9.0
- siemens energyip_prepay: 3.7; 3.8
- siemens gma-manager: before 8.6.2j-398
- siemens head-end_system_universal_device_integration_system: no versions given
- siemens industrial_edge_management: no versions given
- siemens industrial_edge_management_hub: before 2021-12-13
- siemens logo!_soft_comfort: no versions given
- siemens mendix: no versions given
- siemens mindsphere: before 2021-12-11
- siemens navigator: before 2021-12-13
- siemens nx: no versions given
- siemens opcenter_intelligence: up to 3.2
- siemens operation_scheduler: up to 1.1.3
- siemens sentron_powermanager: 4.1; 4.2
- siemens siguard_dsa: 4.2; 4.3; 4.4
- siemens sipass_integrated: 2.80; 2.85
- siemens siveillance_command: up to 4.16.2.1
- siemens siveillance_control_pro: no versions given
- siemens siveillance_identity: 1.5; 1.6
- siemens siveillance_vantage: no versions given
- siemens siveillance_viewpoint: no versions given
- siemens solid_edge_cam_pro: no versions given
- siemens solid_edge_harness_design: before 2020; 2020
- siemens spectrum_power_4: before 4.70; 4.70
- siemens spectrum_power_7: before 2.30; 2.30
- siemens teamcenter: no versions given
- siemens tracealertserverplus: no versions given
- siemens vesys: before 2019.1; 2019.1
- siemens xpedition_enterprise: no versions given
- siemens xpedition_package_integrator: no versions given
- debian debian_linux: 10.0; 11.0
- sonicwall email_security: before 10.0.12
- fedoraproject fedora: 34; 35
- siemens 6bk1602-0aa12-0tp0_firmware: before 2.7.0
- siemens 6bk1602-0aa22-0tp0_firmware: before 2.7.0
- siemens 6bk1602-0aa32-0tp0_firmware: before 2.7.0
- siemens 6bk1602-0aa42-0tp0_firmware: before 2.7.0
- siemens 6bk1602-0aa52-0tp0_firmware: before 2.7.0
- Apache Log4j2: no versions given

## Every score

- CISA-ADP: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P`

## References

- <https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032> (third-party-advisory, web)
- <https://www.oracle.com/security-alerts/alert-cve-2021-44228.html> (third-party-advisory, web)
- <https://www.cve.org/CVERecord?id=CVE-2021-44228> (not-applicable, web)
- <http://www.openwall.com/lists/oss-security/2021/12/14/4> (mailing-list, mitigation, third-party-advisory)
- <https://logging.apache.org/log4j/2.x/security.html> (kev, mitigation, release-notes, vendor-advisory, web)
- <https://www.kb.cert.org/vuls/id/930724> (third-party-advisory, us-government-resource, web)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf> (third-party-advisory, web)
- <https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html> (third-party-advisory, web)
- <https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd> (third-party-advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2021/12/15/3> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf> (third-party-advisory, web)
- <https://www.debian.org/security/2021/dsa-5022> (third-party-advisory, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2021/12/18/1> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf> (third-party-advisory, web)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf> (third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY/> (mailing-list, release-notes, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ/> (mailing-list, release-notes, vendor-advisory)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (third-party-advisory, web)
- <https://security.gentoo.org/glsa/202310-16> (third-party-advisory, web)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-45046> (government-resource, us-government-resource, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45046> (advisory, kev)
- <https://www.openwall.com/lists/oss-security/2021/12/18/1> (web)
- <https://www.openwall.com/lists/oss-security/2021/12/15/3> (web)
- <https://www.openwall.com/lists/oss-security/2021/12/14/4> (web)
- <https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd> (web)
- <https://logging.apache.org/security.html#CVE-2021-45046> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY> (web)
- <https://github.com/apache/logging-log4j2/compare/rel/2.3...rel/2.3.1> (web)

## Sources

- CVE List: [CVE-2021-45046](https://www.cve.org/CVERecord?id=CVE-2021-45046), CVE Terms of Use, modified 2025-10-21
- GitHub Advisory Database: [GHSA-7rjr-3q55-vv33](https://github.com/advisories/GHSA-7rjr-3q55-vv33), CC-BY-4.0, modified 2026-10-02
- NVD: [CVE-2021-45046](https://nvd.nist.gov/vuln/detail/CVE-2021-45046), Public domain, modified 2026-06-17
- CISA KEV: [CVE-2021-45046](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2021-45046), CC0-1.0, modified 2023-05-01

---

Page: https://cve.day/CVE-2021-45046 · Whole record: https://cve.day/CVE-2021-45046.json · Rebuilt by cve.day 2026-11-25T22:58:05.978Z
