CVE-2021-45046Apache Log4j2
Remote Code Execution in Apache Log4j2 via Incomplete JNDI Lookup Fix
Critical 9.0 KEVRansomware No auth neededHigh EPSS
Follow: this CVE · Apache · Apache Log4j2 We alert you by email or Slack (account required).
- Priority
- 94
- CVSS 3.1
- 9.0
- EPSS
- 100.0% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- In KEV since
- May 1, 2023
- CISA deadline
- May 22, 2023
- Ransomware use
- Confirmed
- Published
- Dec 14, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-917
- SSVC (CISA)
- Exploitation: active · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
What happens
Apache Log4j 2.0.1 to 2.12.1 and 2.13.0 to 2.15.0 are vulnerable to remote code execution when using non-default configurations with Context Lookup or Thread Context Map patterns. An attacker with control over Thread Context Map input data can inject malicious JNDI lookup patterns to execute remote code or leak sensitive information. CISA confirmed this vulnerability as actively exploited.
Show the original NVD 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.
Exploitation confirmed by CISA
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.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available · fixed versions: 2.12.2, 2.16.0
Update Apache Log4j2 to version 2.16.0 (Java 8) or 2.12.2 (Java 7) or later. These versions remove support for message lookup patterns and disable JNDI by default.
- Apply the vendor's security update for Log4j2.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was May 22, 2023.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.apache.logging.log4j:log4j-core |
≥ 2.13.0 < 2.16.0 |
2.16.0 |
— |
| Maven | org.apache.logging.log4j:log4j-core |
≥ 2.4.0 < 2.12.2 |
2.12.2 |
— |
| Maven | org.apache.logging.log4j:log4j-core |
< 2.3.1 |
2.3.1 |
— |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 |
≥ 1.8.0 < 1.9.2 |
1.9.2 |
— |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 |
≥ 1.10.0 < 1.10.8 |
1.10.8 |
— |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 |
≥ 1.11.0 < 1.11.11 |
1.11.11 |
— |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 |
≥ 2.0.0 < 2.0.12 |
2.0.12 |
— |
Per OSV / GitHub Advisories (GHSA-7rjr-3q55-vv33). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | log4j | ≥ 2.0.1 < 2.12.2 |
| apache | log4j | ≥ 2.13.0 < 2.16.0 |
| apache | log4j | 2.0 |
| apache | log4j | 2.0 |
| apache | log4j | 2.0 |
| apache | log4j | 2.0 |
| cvat | computer_vision_annotation_tool | all |
| intel | audio_development_kit | all |
| intel | datacenter_manager | all |
| intel | genomics_kernel_library | all |
| intel | oneapi | all |
| intel | secure_device_onboard | all |
| intel | sensor_solution_firmware_development_kit | all |
| intel | system_debugger | all |
| intel | system_studio | all |
| siemens | sppa-t3000_ses3000_firmware | all |
| siemens | captial | < 2019.1 |
| siemens | captial | 2019.1 |
| siemens | captial | 2019.1 |
| siemens | comos | all |
| siemens | desigo_cc_advanced_reports | 4.0 |
| siemens | desigo_cc_advanced_reports | 4.1 |
| siemens | desigo_cc_advanced_reports | 4.2 |
| siemens | desigo_cc_advanced_reports | 5.0 |
| siemens | desigo_cc_advanced_reports | 5.1 |
| siemens | desigo_cc_info_center | 5.0 |
| siemens | desigo_cc_info_center | 5.1 |
| siemens | e-car_operation_center | < 2021-12-13 |
| siemens | energy_engage | 3.1 |
| siemens | energyip | 8.5 |
| siemens | energyip | 8.6 |
| siemens | energyip | 8.7 |
| siemens | energyip | 9.0 |
| siemens | energyip_prepay | 3.7 |
| siemens | energyip_prepay | 3.8 |
| siemens | gma-manager | < 8.6.2j-398 |
| siemens | head-end_system_universal_device_integration_system | all |
| siemens | industrial_edge_management | all |
| siemens | industrial_edge_management_hub | < 2021-12-13 |
| siemens | logo!_soft_comfort | all |
| siemens | mendix | all |
| siemens | mindsphere | < 2021-12-11 |
| siemens | navigator | < 2021-12-13 |
| siemens | nx | all |
| siemens | opcenter_intelligence | ≤ 3.2 |
| siemens | operation_scheduler | ≤ 1.1.3 |
| siemens | sentron_powermanager | 4.1 |
| siemens | sentron_powermanager | 4.2 |
| siemens | siguard_dsa | 4.2 |
| siemens | siguard_dsa | 4.3 |
| siemens | siguard_dsa | 4.4 |
| siemens | sipass_integrated | 2.80 |
| siemens | sipass_integrated | 2.85 |
| siemens | siveillance_command | ≤ 4.16.2.1 |
| siemens | siveillance_control_pro | all |
| siemens | siveillance_identity | 1.5 |
| siemens | siveillance_identity | 1.6 |
| siemens | siveillance_vantage | all |
| siemens | siveillance_viewpoint | all |
| siemens | solid_edge_cam_pro | all |
and 30 more in the JSON
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Mitigation Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- cert-portal.siemens.com Third Party Advisory
- cert-portal.siemens.com Third Party Advisory
- cert-portal.siemens.com Third Party Advisory
- cert-portal.siemens.com Third Party Advisory
- lists.fedoraproject.org Mailing List Release Notes
- lists.fedoraproject.org Mailing List Release Notes
- logging.apache.org Mitigation Release Notes Vendor Advisory
- psirt.global.sonicwall.com Third Party Advisory
- security.gentoo.org Third Party Advisory
- tools.cisco.com Third Party Advisory
- www.cve.org Not Applicable
- www.debian.org Third Party Advisory
- www.intel.com Third Party Advisory
- www.kb.cert.org Third Party Advisory US Government Resource
- www.oracle.com Third Party Advisory
- www.oracle.com Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Third Party Advisory
- www.cisa.gov US Government Resource