CVE-2026-34478Apache Log4j Core: Log injection in Rfc5424Layout due to silent configuration…
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34478 | |
| Ubuntu 26.10 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-34478 | |
| Ubuntu 26.04 | apache-log4j1.2 | Under investigation | UBUNTU-CVE-2026-34478 | |
| Ubuntu 26.04 | apache-log4j2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | apache-log4j1.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-34478 | |
| Ubuntu 25.10 | apache-log4j2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-34478 | |
| Ubuntu 24.04 | apache-log4j1.2 | Under investigation | UBUNTU-CVE-2026-34478 | |
| Ubuntu 24.04 | apache-log4j2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | apache-log4j1.2 | Under investigation | UBUNTU-CVE-2026-34478 | |
| Ubuntu 22.04 | apache-log4j2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34478 | |
| Ubuntu 18.04 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34478 | |
| Ubuntu 16.04 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34478 | |
| Ubuntu 16.04 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-34478 | |
| Ubuntu 14.04 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34478 | |
| Red Hat Enterprise Linux 9 | log4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | log4j-jcl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | log4j-slf4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-client | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-core | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-jackson2-provider | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-servlet-initializer | Not affected | ||
| Red Hat Enterprise Linux 9 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-jcl | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-slf4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-web | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy-javadoc | Not affected | ||
| Maven library | org.apache.logging.log4j:log4j-core | Fixed | 2.25.4 | GHSA-445c-vh5m-36rj |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Log4j Core: affected: 2.21.0 to before 2.25.4, 3.0.0-beta1 to 3.0.0-beta3; fixed in
2.25.4
Vendor advisories:
- https://github.com/apache/logging-log4j2/pull/4074 (patch)
- https://logging.apache.org/security.html#CVE-2026-34478 (vendor-advisory)
- https://logging.apache.org/cyclonedx/vdr.xml (vendor-advisory)
- https://lists.apache.org/thread/3k1clr2l6vkdnl4cbhjrnt1nyjvb5gwt (vendor-advisory)
References
- https://github.com/apache/logging-log4j2/pull/4074
- https://logging.apache.org/security.html#CVE-2026-34478
- https://logging.apache.org/cyclonedx/vdr.xml
- https://logging.apache.org/log4j/2.x/manual/layouts.html#RFC5424Layout
- https://lists.apache.org/thread/3k1clr2l6vkdnl4cbhjrnt1nyjvb5gwt
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.