CVE-2026-34478 Details
Description
Apache Log4j Core's Rfc5424Layout https://logging.apache.org/log4j/2.x/manual/layouts.html#RFC5424Layout , in versions 2.21.0 through 2.25.3, is vulnerable to log injection via CRLF sequences due to undocumented renames of security-relevant configuration attributes. Two distinct issues affect users of stream-based syslog services who configure Rfc5424Layout directly: * The newLineEscape attribute was silently renamed, causing newline escaping to stop working for users of TCP framing (RFC 6587), exposing them to CRLF injection in log output. * The useTlsMessageFormat attribute was silently renamed, causing users of TLS framing (RFC 5425) to be silently downgraded to unframed TCP (RFC 6587), without newline escaping. Users of the SyslogAppender are not affected, as its configuration attributes were not modified. Users are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue.
A log injection vulnerability has been identified in Apache Log4j Core's Rfc5424Layout, affecting versions 2.21.0 prior to 2.25.4. The vulnerability arises from undocumented renames of security-relevant configuration attributes, leading to CRLF injection via stream-based syslog services. Specifically, the newLineEscape attribute was renamed, disrupting newline escaping for TCP framing users, and the useTlsMessageFormat attribute was renamed, downgrading TLS users to unframed TCP without newline escaping. This issue does not impact users of the SyslogAppender, as its configuration attributes remain unchanged.
Upgrade to Apache Log4j Core version 2.25.4, which restores the correct attribute names and functionality. After upgrading, verify that the Rfc5424Layout is properly configured for the intended syslog framing.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2026/04/10/7 | CVE | Mailing ListThird Party Advisory |
| https://github.com/apache/logging-log4j2/pull/4074 | [email protected] | Issue TrackingPatch |
| https://lists.apache.org/thread/3k1clr2l6vkdnl4cbhjrnt1nyjvb5gwt | [email protected] | Mailing ListVendor Advisory |
| https://logging.apache.org/cyclonedx/vdr.xml | [email protected] | Product |
| https://logging.apache.org/log4j/2.x/manual/layouts.html#RFC5424Layout | [email protected] | Technical Description |
| https://logging.apache.org/security.html#CVE-2026-34478 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-117 | Improper Output Neutralization for Logs | [email protected] |
| CWE-684 | Incorrect Provision of Specified Functionality | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache log4j | >= 2.21.0, < 2.25.4 3.0.0 beta1 3.0.0 beta2 3.0.0 beta3 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 24, 2026 | Initial Analysis | [email protected] |
| Apr 10, 2026 | CVE Modified | CVE |
| Apr 10, 2026 | New CVE Received | [email protected] |