CVE-2026-34478: Apache Log4j Core: Log injection in Rfc5424Layout due to silent configuration incompatibility

Published Apr 10, 2026
·
Updated

Apache Log4j Core's Rfc5424Layout

Other sources

Apache Log4j Core's 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.

— GitHub

Affected Software

22 affected componentsFixes available
Apache Log4j Core>=2.21.0<=2.25.3
Apache Log4j>=2.21.0<2.25.4
Apache Log4j=3.0.0-beta1
Apache Log4j=3.0.0-beta2
Apache Log4j=3.0.0-beta3
ubuntu/apache-log4j1.2*
ubuntu/apache-log4j2*
ubuntu/apache-log4j1.2*
ubuntu/apache-log4j1.2*
ubuntu/apache-log4j1.2*
ubuntu/apache-log4j1.2*
ubuntu/apache-log4j1.2*
ubuntu/apache-log4j1.2*
ubuntu/apache-log4j2*
ubuntu/apache-log4j1.2*
ubuntu/apache-log4j2*
ubuntu/apache-log4j1.2*
IBM Secure Proxy<=6.1.0.0 - 6.2.1.2
maven/org.apache.logging.log4j:log4j-core>=3.0.0-beta1<=3.0.0-beta3
maven/org.apache.logging.log4j:log4j-core>=2.21.0<2.25.4
2.25.4
debian/apache-log4j1.2
debian/apache-log4j2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.logging.log4j:log4j-core to a version that resolves this vulnerability.

    Fixed in 2.25.4
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.25.4

Event History

Apr 10, 2026
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionWeakness
Data Sourced
via Red Hat·04:02 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·04:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:31 PM
Data Sourced
via GitHub·06:31 PM
DescriptionWeaknessAffected Software
Apr 24, 2026
Data Sourced
via NVD·06:10 PM
RemedyAffected Software
Updated
via NVD·06:10 PM
Severity
May 9, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jul 6, 2026
Updated
via IBM·12:00 AM
Affected Software
Aug 5, 2026
Updated
via IBM·12:00 AM
Affected Software
Aug 20, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 7, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 28, 2026
Updated
via IBM·12:00 AM
Affected Software
Oct 15, 2026
Updated
via IBM·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-34478?

CVE-2026-34478 has been rated as a medium severity vulnerability due to the risk of log injection impacting the integrity of log files.

2

How do I fix CVE-2026-34478?

To fix CVE-2026-34478, upgrade to Apache Log4j Core version 2.25.4 or later, which addresses the log injection vulnerability.

3

What versions of Apache Log4j Core are affected by CVE-2026-34478?

CVE-2026-34478 affects Apache Log4j Core versions from 2.21.0 to 2.25.3.

4

What kind of attacks can be executed using CVE-2026-34478?

CVE-2026-34478 allows attackers to perform log injection attacks, leading to potential information disclosure or unauthorized command execution.

5

Is CVE-2026-34478 a concern for all users of Apache Log4j Core?

Yes, all users of Apache Log4j Core in the affected versions should be concerned and take immediate steps to mitigate the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203