CVE-2021-45046
CVE-2021-45046 is a critical-severity vulnerability in Apache Log4j with a CVSS 3.x base score of 9.0. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2023-05-01). The underlying weakness is classified as CWE-917.
Key facts
- Severity: Critical (CVSS 3.x base score 9.0)
- CVSS v2: 5.1
- EPSS exploit prediction: 100% (100th percentile)
- Actively exploited: Yes — listed in CISA KEV (added 2023-05-01)
- EU (EUVD) id: EUVD-2021-34769
- EU exploitation: Flagged exploited in the ENISA EU Vulnerability Database (since 2023-05-01)
- Weakness: CWE-917
- Affected product: Apache Log4j
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2021-45046?
- 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.
- How severe is CVE-2021-45046?
- CVE-2021-45046 has a CVSS 3.x base score of 9.0, rated critical severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-45046 being actively exploited?
- Yes. CVE-2021-45046 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2023-05-01, which means active exploitation has been confirmed. It should be prioritised for remediation.
- What products are affected by CVE-2021-45046?
- CVE-2021-45046 primarily affects Apache Log4j. In total, 89 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-45046?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
- Does CVE-2021-45046 have an EU (EUVD) identifier?
- Yes. CVE-2021-45046 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2021-34769. It is also flagged as exploited in the EUVD (since 2023-05-01).
- When was CVE-2021-45046 published?
- CVE-2021-45046 was published on 2021-12-14 and last updated on 2026-06-17.
References
- http://www.openwall.com/lists/oss-security/2021/12/14/4
- http://www.openwall.com/lists/oss-security/2021/12/15/3
- 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://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-714170.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://logging.apache.org/log4j/2.x/security.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- https://security.gentoo.org/glsa/202310-16
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
- https://www.cve.org/CVERecord?id=CVE-2021-44228
- https://www.debian.org/security/2021/dsa-5022
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html
- https://www.kb.cert.org/vuls/id/930724
- https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-45046
Affected products (89)
- cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*
- cpe:2.3:a:apache:log4j:2.0:-:*:*:*:*:*:*
- cpe:2.3:a:apache:log4j:2.0:beta9:*:*:*:*:*:*
- cpe:2.3:a:apache:log4j:2.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:apache:log4j:2.0:rc2:*:*:*:*:*:*
- cpe:2.3:a:cvat:computer_vision_annotation_tool:-:*:*:*:*:*:*:*
- cpe:2.3:a:intel:audio_development_kit:-:*:*:*:*:*:*:*
- cpe:2.3:a:intel:datacenter_manager:-:*:*:*:*:*:*:*
- cpe:2.3:a:intel:genomics_kernel_library:-:*:*:*:*:*:*:*
- cpe:2.3:a:intel:oneapi:-:*:*:*:*:eclipse:*:*
- cpe:2.3:a:intel:secure_device_onboard:-:*:*:*:*:*:*:*
- cpe:2.3:a:intel:sensor_solution_firmware_development_kit:-:*:*:*:*:*:*:*
- cpe:2.3:a:intel:system_debugger:-:*:*:*:*:*:*:*
- cpe:2.3:a:intel:system_studio:-:*:*:*:*:*:*:*
- cpe:2.3:o:siemens:sppa-t3000_ses3000_firmware:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:captial:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:captial:2019.1:-:*:*:*:*:*:*
- cpe:2.3:a:siemens:captial:2019.1:sp1912:*:*:*:*:*:*
- cpe:2.3:a:siemens:comos:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:desigo_cc_advanced_reports:4.0:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:desigo_cc_advanced_reports:4.1:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:desigo_cc_advanced_reports:4.2:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:desigo_cc_advanced_reports:5.0:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:desigo_cc_advanced_reports:5.1:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:desigo_cc_info_center:5.0:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:desigo_cc_info_center:5.1:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:e-car_operation_center:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:energy_engage:3.1:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:energyip:8.5:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:energyip:8.6:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:energyip:8.7:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:energyip:9.0:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:energyip_prepay:3.7:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:energyip_prepay:3.8:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:gma-manager:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:head-end_system_universal_device_integration_system:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:industrial_edge_management:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:industrial_edge_management_hub:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:logo\!_soft_comfort:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:mendix:*:*:*:*:*:*:*:*
More vulnerabilities in Apache Log4j
- CVE-2021-44228 — Critical (CVSS 10.0): Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in…
- CVE-2022-23305 — Critical (CVSS 9.8): By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter where the values to be…
- CVE-2020-9493 — Critical (CVSS 9.8): A deserialization flaw was found in Apache Chainsaw versions prior to 2.1.0 which could lead to malicious code…
- CVE-2019-17571 — Critical (CVSS 9.8): Included in Log4j 1.2 is a SocketServer class that is vulnerable to deserialization of untrusted data which can be…
- CVE-2017-5645 — Critical (CVSS 9.8): In Apache Log4j 2.x before 2.8.2, when using the TCP socket server or UDP socket server to receive serialized log…
- CVE-2022-23307 — High (CVSS 8.8): CVE-2020-9493 identified a deserialization issue that was present in Apache Chainsaw. Prior to Chainsaw V2.0 Chainsaw…
All CVEs affecting Apache Log4j →
Other CWE-917 vulnerabilities
- CVE-2025-3322 — Critical (CVSS 10.0): An improper neutralization of inputs used in expression language allows remote code execution with the highest…
- CVE-2022-22947 — Critical (CVSS 10.0): In spring cloud gateway versions prior to 3.1.1+ and 3.0.7+ , applications are vulnerable to a code injection attack…
- CVE-2026-52439 — Critical (CVSS 9.8): An issue in xiandafu beetl 3.20.2 allows a remote attacker to execute arbitrary code via the type.new function and the…
- CVE-2026-11561 — Critical (CVSS 9.8): Improper neutralization of special elements used in an expression language statement ('expression language injection')…
- CVE-2026-22738 — Critical (CVSS 9.8): In Spring AI, a SpEL injection vulnerability exists in SimpleVectorStore when a user-supplied value is used as a…
- CVE-2026-24713 — Critical (CVSS 9.8): Improper Input Validation vulnerability in Apache IoTDB. This issue affects Apache IoTDB: from 1.0.0 before 1.3.7,…