Log Injection Vulnerability in Apache Log4j Core Product
CVE-2026-34478
6.9MEDIUM
What is CVE-2026-34478?
The Apache Log4j Core component's Rfc5424Layout versions 2.21.0 to 2.25.3 is susceptible to log injection due to unnecessary renaming of critical configuration attributes. Specifically, the renamed newLineEscape attribute disrupts newline escaping for TCP framing (RFC 6587), facilitating CRLF injection in log outputs. Additionally, the useTlsMessageFormat attribute's rename leads to an unintentional downgrade to unframed TCP, compromising the security of TLS framing (RFC 5425). Users utilizing SyslogAppender remain unaffected. To rectify this vulnerability, it is recommended to update to Apache Log4j Core version 2.25.4.
Affected Version(s)
Apache Log4j Core 2.21.0 < 2.25.4
Apache Log4j Core 3.0.0-beta1 <= 3.0.0-beta3