ID:7194 - Exploit for Code Injection in Apache Log4j - CVE-2021-45046

 
Main Vulnerability Database Exploits ID:7194 - Exploit for Code Injection in Apache Log4j - CVE-2021-45046

ID:7194 - Exploit for Code Injection in Apache Log4j - CVE-2021-45046

Published: December 21, 2021


Vulnerability identifier: #VU58976
Vulnerability risk: High
CVE-ID: CVE-2021-45046
CWE-ID: CWE-94
Exploitation vector: Remote access
Vulnerable software:
Apache Log4j

Link to public exploit:


Vulnerability description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to incomplete patch in Apache Log4j 2.15.0 for a code injection vulnerability #VU58816 (CVE-2021-44228) in certain non-default configurations. A remote attacker 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) can pass malicious data using a JNDI Lookup pattern and perform a denial of service (DoS) attack, exfiltrate data or execute arbitrary code.

Later discovery demonstrates a remote code execution on macOS but no other tested environments.


Remediation

Install updates from vendor's website.