Exploited vulnerabilities · Apache
CVE-2021-45046
Apache Log4j2 Deserialization of Untrusted Data Vulnerability
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.
Description in the NVD
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.
Required action according to CISA
Apply updates per vendor instructions.
What to do now
- Check your exposureFind out whether Apache Log4j2 runs anywhere in your environment, including systems of suppliers.
- Patch or mitigateApply the vendor update. If that is not possible at once, use the vendor's mitigation or take the system off the network.
- Look for signs of an attackThis vulnerability is exploited in real attacks. Review the logs of affected systems for the time before the patch.
References
- nvd.nist.gov/vuln/detail/CVE-2021-45046
- github.com/advisories/GHSA-jfh8-c2jp-5v3q
- logging.apache.org/log4j/2.x/security.html
- www.openwall.com/lists/oss-security/2021/12/14/4
- www.cve.org/CVERecord?id=CVE-2021-44228
- www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html
- cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf
- cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf
- nvd.nist.gov/vuln/detail/CVE-2021-45046
More exploited vulnerabilities in Apache products
Data: CISA Known Exploited Vulnerabilities Catalog and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.