9.0criticalExploited
Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack
- Severity
- 9.0critical 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-7rjr-3q55-vv33
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Log4j | from Apache Log4j2 before 2.16.0 | CVE List |
| 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 | GitHub 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.8, from 1.11.0 before 1.11.11, from 2.0.0 before 2.0.12 | GitHub Advisory Database |
| apache log4j | from 2.0.1 before 2.12.2, from 2.13.0 before 2.16.0, 2.0 | NVD |
| cvat computer_vision_annotation_tool | Not specified | NVD |
| intel audio_development_kit | Not specified | NVD |
| intel datacenter_manager | Not specified | NVD |
| intel genomics_kernel_library | Not specified | NVD |
| intel oneapi | Not specified | NVD |
| intel secure_device_onboard | Not specified | NVD |
| intel sensor_solution_firmware_development_kit | Not specified | NVD |
| intel system_debugger | Not specified | NVD |
| intel system_studio | Not specified | NVD |
| siemens sppa-t3000_ses3000_firmware | Not specified | NVD |
| siemens captial | before 2019.1, 2019.1 | NVD |
| siemens comos | Not specified | NVD |
| siemens desigo_cc_advanced_reports | 4.0, 4.1, 4.2, 5.0, 5.1 | NVD |
| siemens desigo_cc_info_center | 5.0, 5.1 | NVD |
| siemens e-car_operation_center | before 2021-12-13 | NVD |
| siemens energy_engage | 3.1 | NVD |
| siemens energyip | 8.5, 8.6, 8.7, 9.0 | NVD |
| siemens energyip_prepay | 3.7, 3.8 | NVD |
| siemens gma-manager | before 8.6.2j-398 | NVD |
| siemens head-end_system_universal_device_integration_system | Not specified | NVD |
| siemens industrial_edge_management | Not specified | NVD |
| siemens industrial_edge_management_hub | before 2021-12-13 | NVD |
| siemens logo!_soft_comfort | Not specified | NVD |
| siemens mendix | Not specified | NVD |
| siemens mindsphere | before 2021-12-11 | NVD |
| siemens navigator | before 2021-12-13 | NVD |
| siemens nx | Not specified | NVD |
| siemens opcenter_intelligence | up to 3.2 | NVD |
| siemens operation_scheduler | up to 1.1.3 | NVD |
| siemens sentron_powermanager | 4.1, 4.2 | NVD |
| siemens siguard_dsa | 4.2, 4.3, 4.4 | NVD |
| siemens sipass_integrated | 2.80, 2.85 | NVD |
| siemens siveillance_command | up to 4.16.2.1 | NVD |
| siemens siveillance_control_pro | Not specified | NVD |
| siemens siveillance_identity | 1.5, 1.6 | NVD |
| siemens siveillance_vantage | Not specified | NVD |
| siemens siveillance_viewpoint | Not specified | NVD |
| siemens solid_edge_cam_pro | Not specified | NVD |
| siemens solid_edge_harness_design | before 2020, 2020 | NVD |
| siemens spectrum_power_4 | before 4.70, 4.70 | NVD |
| siemens spectrum_power_7 | before 2.30, 2.30 | NVD |
| siemens teamcenter | Not specified | NVD |
| siemens tracealertserverplus | Not specified | NVD |
| siemens vesys | before 2019.1, 2019.1 | NVD |
| siemens xpedition_enterprise | Not specified | NVD |
| siemens xpedition_package_integrator | Not specified | NVD |
| debian debian_linux | 10.0, 11.0 | NVD |
| sonicwall email_security | before 10.0.12 | NVD |
| fedoraproject fedora | 34, 35 | NVD |
| siemens 6bk1602-0aa12-0tp0_firmware | before 2.7.0 | NVD |
| siemens 6bk1602-0aa22-0tp0_firmware | before 2.7.0 | NVD |
| siemens 6bk1602-0aa32-0tp0_firmware | before 2.7.0 | NVD |
| siemens 6bk1602-0aa42-0tp0_firmware | before 2.7.0 | NVD |
| siemens 6bk1602-0aa52-0tp0_firmware | before 2.7.0 | NVD |
| Apache Log4j2 | Not specified | CISA KEV |
All scores
| CISA-ADP | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 5.1medium CVSS:2.0 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
The fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allow 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 a remote code execution (RCE) attack.
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.
Mitigation
Log4j 2.16.0 fixes this issue by removing support for message lookup patterns and disabling JNDI functionality by default. This issue can be mitigated in prior releases (< 2.16.0) by removing the JndiLookup class from the classpath (example: zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class).
Log4j 2.15.0 restricts JNDI LDAP lookups to localhost by default. Note that previous mitigations involving configuration such as to set the system property log4j2.formatMsgNoLookups to true do NOT mitigate this specific vulnerability.
NVD (es)
Se descubrió que la corrección para abordar CVE-2021-44228 en Apache Log4j versiones 2.15.0 estaba incompleta en ciertas configuraciones no predeterminadas. Esto podría permitir a los atacantes con control sobre los datos de entrada de Thread Context Map (MDC) cuando la configuración de registro utiliza un Pattern Layout no predeterminado con un Context Lookup (por ejemplo, $${ctx:loginId}) o un Thread Context Map pattern (%X, %mdc, o %MDC) para elaborar datos de entrada maliciosos utilizando un patrón JNDI Lookup que resulta en una fuga de información y ejecución de código remoto en algunos entornos y ejecución de código local en todos los entornos. Log4j versiones 2.16.0 (Java 8) y 2.12.2 (Java 7) solucionan este problema eliminando el soporte para los patrones de búsqueda de mensajes y deshabilitando la funcionalidad JNDI por defecto
CISA KEV
Apache Log4j2 contains a deserialization of untrusted data vulnerability due to the incomplete fix of CVE-2021-44228, where the Thread Context Lookup Pattern is vulnerable to remote code execution in certain non-default configurations.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-45046 changed 2025-10-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7rjr-3q55-vv33 changed 2026-10-02 | CC-BY-4.0 |
| NVD | CVE-2021-45046 changed 2026-06-17 | Public domain |
| CISA KEV | CVE-2021-45046 changed 2023-05-01 | CC0-1.0 |