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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.logging.log4j:log4j-coreMaven | >= 2.13.0, < 2.16.0 | 2.16.0 |
org.apache.logging.log4j:log4j-coreMaven | < 2.12.2 | 2.12.2 |
org.ops4j.pax.logging:pax-logging-log4j2Maven | >= 1.8.0, < 1.9.2 | 1.9.2 |
org.ops4j.pax.logging:pax-logging-log4j2Maven | >= 1.10.0, < 1.10.8 | 1.10.8 |
org.ops4j.pax.logging:pax-logging-log4j2Maven | >= 1.11.0, < 1.11.11 | 1.11.11 |
org.ops4j.pax.logging:pax-logging-log4j2Maven | >= 2.0.0, < 2.0.12 | 2.0.12 |
Affected products
1- Apache Software Foundation/Apache Log4jv5Range: Apache Log4j2
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
31- github.com/advisories/GHSA-7rjr-3q55-vv33ghsaADVISORY
- github.com/advisories/GHSA-jfh8-c2jp-5v3qghsaADVISORY
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ/mitrevendor-advisoryx_refsource_FEDORA
- nvd.nist.gov/vuln/detail/CVE-2021-45046ghsaADVISORY
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbdghsavendor-advisoryx_refsource_CISCOWEB
- www.debian.org/security/2021/dsa-5022ghsavendor-advisoryx_refsource_DEBIANWEB
- www.kb.cert.org/vuls/id/930724ghsathird-party-advisoryx_refsource_CERT-VNWEB
- www.openwall.com/lists/oss-security/2021/12/14/4ghsamailing-listx_refsource_MLISTWEB
- www.openwall.com/lists/oss-security/2021/12/15/3ghsamailing-listx_refsource_MLISTWEB
- www.openwall.com/lists/oss-security/2021/12/18/1ghsamailing-listx_refsource_MLISTWEB
- cert-portal.siemens.com/productcert/pdf/ssa-397453.pdfghsax_refsource_CONFIRMWEB
- cert-portal.siemens.com/productcert/pdf/ssa-479842.pdfghsax_refsource_CONFIRMWEB
- cert-portal.siemens.com/productcert/pdf/ssa-661247.pdfghsax_refsource_CONFIRMWEB
- cert-portal.siemens.com/productcert/pdf/ssa-714170.pdfghsax_refsource_CONFIRMWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCYghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCYghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJghsaWEB
- logging.apache.org/log4j/2.x/security.htmlghsax_refsource_CONFIRMWEB
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032ghsax_refsource_CONFIRMWEB
- sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbdghsaWEB
- security.gentoo.org/glsa/202310-16ghsaWEB
- www.cisa.gov/known-exploited-vulnerabilities-catalogghsaWEB
- www.cve.org/CVERecordghsax_refsource_MISCWEB
- www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.htmlghsax_refsource_CONFIRMWEB
- www.openwall.com/lists/oss-security/2021/12/14/4ghsaWEB
- www.oracle.com/security-alerts/alert-cve-2021-44228.htmlghsax_refsource_CONFIRMWEB
- www.oracle.com/security-alerts/cpuapr2022.htmlghsax_refsource_MISCWEB
- www.oracle.com/security-alerts/cpujan2022.htmlghsax_refsource_MISCWEB
- www.oracle.com/security-alerts/cpujul2022.htmlghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.