{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-45046","id":"CVE-2021-45046","title":"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 mal","descriptionLong":"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.","published":"2021-12-14T16:55:09.000Z","updated":"2026-10-26T10:45:15.566977032Z","reserved":"2021-12-14T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"critical","products":["Apache Software Foundation Apache Log4j"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Log4j","defaultStatus":null,"versions":[{"lessThan":"2.16.0","status":"affected","version":"Apache Log4j2","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.apache.logging.log4j:log4j-core","purl":"pkg:maven/org.apache.logging.log4j/log4j-core","ranges":[">=2.13.0 <2.16.0",">=2.4.0 <2.12.2","<2.3.1"],"fixed":["2.16.0","2.12.2","2.3.1"],"advisory":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","name":"org.ops4j.pax.logging:pax-logging-log4j2","purl":"pkg:maven/org.ops4j.pax.logging/pax-logging-log4j2","ranges":[">=1.8.0 <1.9.2",">=1.10.0 <1.10.8",">=1.11.0 <1.11.11",">=2.0.0 <2.0.12"],"fixed":["1.9.2","1.10.8","1.11.11","2.0.12"],"advisory":"GHSA-7rjr-3q55-vv33"}],"cwes":["CWE-917","CWE-502"],"aliases":["GHSA-7rjr-3q55-vv33"],"references":[{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.oracle.com/security-alerts/alert-cve-2021-44228.html","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-44228","tags":["x_refsource_MISC","x_transferred","Not Applicable","web"]},{"url":"http://www.openwall.com/lists/oss-security/2021/12/14/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Mitigation","Third Party Advisory","advisory"]},{"url":"https://logging.apache.org/log4j/2.x/security.html","tags":["x_refsource_CONFIRM","x_transferred","Mitigation","Release Notes","Vendor Advisory","advisory","web"]},{"url":"https://www.kb.cert.org/vuls/id/930724","tags":["third-party-advisory","x_refsource_CERT-VN","x_transferred","Third Party Advisory","US Government Resource","advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd","tags":["vendor-advisory","x_refsource_CISCO","x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/12/15/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.debian.org/security/2021/dsa-5022","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2021/12/18/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Mailing List","Release Notes","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Mailing List","Release Notes","advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://security.gentoo.org/glsa/202310-16","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-45046","tags":["government-resource","US Government Resource","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45046","tags":["advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2021/12/18/1","tags":["web"]},{"url":"https://www.openwall.com/lists/oss-security/2021/12/15/3","tags":["web"]},{"url":"https://www.openwall.com/lists/oss-security/2021/12/14/4","tags":["web"]},{"url":"https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd","tags":["web"]},{"url":"https://logging.apache.org/security.html#CVE-2021-45046","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY","tags":["web"]},{"url":"https://github.com/apache/logging-log4j2/compare/rel/2.3...rel/2.3.1","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":true,"kevAdded":"2023-05-01","kevDue":"2023-05-22","kevEntry":{"cveID":"CVE-2021-45046","vendorProject":"Apache","product":"Log4j2","vulnerabilityName":"Apache Log4j2 Deserialization of Untrusted Data Vulnerability","dateAdded":"2023-05-01","shortDescription":"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.","requiredAction":"Apply updates per vendor instructions.","dueDate":"2023-05-22","knownRansomwareCampaignUse":"Known","notes":"https://logging.apache.org/log4j/2.x/security.html; https://nvd.nist.gov/vuln/detail/CVE-2021-45046","cwes":["CWE-917"]},"ssvc":{"exploitation":"active","automatable":"no","technicalImpact":"total"},"epss":0.99977,"epssPercentile":0.9998,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-45046","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45046","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-45046","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7rjr-3q55-vv33","ok":true,"note":"GHSA-7rjr-3q55-vv33"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2023-05-01"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-45046","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["log4j"],"critical":["Exploited in the wild (CISA KEV)","CVSS 9.0 in a widely used technology","EPSS 100% with CVSS 9.0"],"attention":null}