CVE-2021-45046

Known Exploited
Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack

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.

Category

9.0
CVSS
Severity: Critical
CVSS 3.1 •
CVSS 2.0 •
EPSS 94.31% Top 5%
KEV Since 
Vendor Advisory cisco.com Vendor Advisory debian.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory apache.org
Affected: Apache Software Foundation Apache Log4j
Published at:
Updated at:

References

Link Tags
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032 third party advisory
https://www.oracle.com/security-alerts/alert-cve-2021-44228.html third party advisory
https://www.cve.org/CVERecord?id=CVE-2021-44228 not applicable
http://www.openwall.com/lists/oss-security/2021/12/14/4 mailing list mitigation third party advisory
https://logging.apache.org/log4j/2.x/security.html vendor advisory mitigation release notes
https://www.kb.cert.org/vuls/id/930724 third party advisory us government resource
https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf third party advisory
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html third party advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd third party advisory vendor advisory
http://www.openwall.com/lists/oss-security/2021/12/15/3 third party advisory mailing list
https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf third party advisory
https://www.debian.org/security/2021/dsa-5022 third party advisory vendor advisory
http://www.openwall.com/lists/oss-security/2021/12/18/1 third party advisory mailing list
https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf third party advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf third party advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY/ vendor advisory mailing list release notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ/ vendor advisory mailing list release notes
https://www.oracle.com/security-alerts/cpujan2022.html third party advisory patch
https://www.oracle.com/security-alerts/cpuapr2022.html third party advisory
https://www.oracle.com/security-alerts/cpujul2022.html third party advisory
https://security.gentoo.org/glsa/202310-16 third party advisory

Frequently Asked Questions

What is the severity of CVE-2021-45046?
CVE-2021-45046 has been scored as a critical severity vulnerability.
How to fix CVE-2021-45046?
To fix CVE-2021-45046, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-45046 being actively exploited in the wild?
It is confirmed that CVE-2021-45046 is actively exploited. Be extra cautious if you are using vulnerable components. According to its EPSS score, there is a ~94% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-45046?
CVE-2021-45046 affects Apache Software Foundation Apache Log4j.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.