Live threats

All CVEs / Apache

CVE-2021-45046Apache Log4j2

Remote Code Execution in Apache Log4j2 via Incomplete JNDI Lookup Fix

Critical 9.0 KEVRansomware No auth neededHigh EPSS

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.

Source text, unmodified. NVD.

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.

Source text, unmodified. CISA KEV.

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.

Vendor advisory · logging.apache.org ↗

  1. Apply the vendor's security update for Log4j2.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was May 22, 2023.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
apachelog4j≥ 2.0.1 < 2.12.2
apachelog4j≥ 2.13.0 < 2.16.0
apachelog4j2.0
apachelog4j2.0
apachelog4j2.0
apachelog4j2.0
cvatcomputer_vision_annotation_toolall
intelaudio_development_kitall
inteldatacenter_managerall
intelgenomics_kernel_libraryall
inteloneapiall
intelsecure_device_onboardall
intelsensor_solution_firmware_development_kitall
intelsystem_debuggerall
intelsystem_studioall
siemenssppa-t3000_ses3000_firmwareall
siemenscaptial< 2019.1
siemenscaptial2019.1
siemenscaptial2019.1
siemenscomosall
siemensdesigo_cc_advanced_reports4.0
siemensdesigo_cc_advanced_reports4.1
siemensdesigo_cc_advanced_reports4.2
siemensdesigo_cc_advanced_reports5.0
siemensdesigo_cc_advanced_reports5.1
siemensdesigo_cc_info_center5.0
siemensdesigo_cc_info_center5.1
siemense-car_operation_center< 2021-12-13
siemensenergy_engage3.1
siemensenergyip8.5
siemensenergyip8.6
siemensenergyip8.7
siemensenergyip9.0
siemensenergyip_prepay3.7
siemensenergyip_prepay3.8
siemensgma-manager< 8.6.2j-398
siemenshead-end_system_universal_device_integration_systemall
siemensindustrial_edge_managementall
siemensindustrial_edge_management_hub< 2021-12-13
siemenslogo!_soft_comfortall
siemensmendixall
siemensmindsphere< 2021-12-11
siemensnavigator< 2021-12-13
siemensnxall
siemensopcenter_intelligence≤ 3.2
siemensoperation_scheduler≤ 1.1.3
siemenssentron_powermanager4.1
siemenssentron_powermanager4.2
siemenssiguard_dsa4.2
siemenssiguard_dsa4.3
siemenssiguard_dsa4.4
siemenssipass_integrated2.80
siemenssipass_integrated2.85
siemenssiveillance_command≤ 4.16.2.1
siemenssiveillance_control_proall
siemenssiveillance_identity1.5
siemenssiveillance_identity1.6
siemenssiveillance_vantageall
siemenssiveillance_viewpointall
siemenssolid_edge_cam_proall

and 30 more in the JSON

Official sources

References

Links published by the sources. Open them with care.