CVE-2021-45046
Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack
At a glance
- Source
- NVD
- EPSS
- EPSS 99.98 % · percentile 100 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- apache
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-917 — Expression Language Injection (EL Injection)
References
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
- https://www.cve.org/CVERecord?id=CVE-2021-44228
- http://www.openwall.com/lists/oss-security/2021/12/14/4
- https://logging.apache.org/log4j/2.x/security.html
- https://www.kb.cert.org/vuls/id/930724
- https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
- http://www.openwall.com/lists/oss-security/2021/12/15/3
- https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf
- https://www.debian.org/security/2021/dsa-5022
- 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://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://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.gentoo.org/glsa/202310-16
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-45046
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H | CISA-ADP |
| CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H | NVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) |
| CVSS 2.0 | MEDIUM 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-7rjr-3q55-vv33 — Incomplete fix for Apache Log4j vulnerability
European references
- ENISA EUVD · EUVD-2021-34769
- GCVE · GCVE-0-2021-45046
CERT-FR advisories
- CERTFR-2025-AVI-0855 — Multiples vulnérabilités dans les produits Juniper Networks · cert.ssi.gouv.fr
- CERTFR-2022-AVI-717 — Multiples vulnérabilités dans les produits Schneider · cert.ssi.gouv.fr
- CERTFR-2022-AVI-570 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2022-AVI-568 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2022-AVI-526 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2022-AVI-125 — Multiples vulnérabilités dans les produits SAP · cert.ssi.gouv.fr
- CERTFR-2022-AVI-124 — Multiples vulnérabilités dans les produits Siemens · cert.ssi.gouv.fr
- CERTFR-2022-AVI-1027 — Multiples vulnérabilités dans IBM Db2 · cert.ssi.gouv.fr
- CERTFR-2021-AVI-951 — Multiples vulnérabilités dans le noyau Linux de RedHat · cert.ssi.gouv.fr
- CERTFR-2021-ALE-022 — [MaJ] Vulnérabilité dans Apache Log4j · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*≥ 2.0.1 < 2.12.2cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*≥ 2.13.0 < 2.16.0cpe: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:*:*:*:*:*:*:*:*< 2019.1cpe: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:*:*:*:*:*:*:*:*< 2021-12-13cpe: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:*:*:*:*:*:*:*:*< 8.6.2j-398cpe: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:*:*:*:*:*:*:*:*< 2021-12-13cpe:2.3:a:siemens:logo\!_soft_comfort:*:*:*:*:*:*:*:*- +50 more
Affected products
| Product | Versions |
|---|---|
| Apache Software Foundation · Apache Log4j | affected Apache Log4j2 < 2.16.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| CISA Known Exploited Vulnerabilities | CC0 1.0 |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |