Apache Log4j Core: Improper Output Neutralization for Logs
CVE-2026-34478 is a high-severity improper output neutralization for logs vulnerability in Apache Log4j Core from Apache, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version 2.25.4 as the first without the flaw, so updating Apache Log4j Core to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.99% chance of exploitation within 30 days, higher than 63% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Apache Log4j Core to 2.25.4 or a later version.
- Update Log4j to 2.25.4 or a later version.
- Read the advisory on lists.apache.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Apache | Apache Log4j Core | 2.21.0 up to, but not including, 2.25.4; 3.0.0-beta1 through 3.0.0-beta3 | 2.25.4 |
| Apache | Log4j | 2.21.0 up to, but not including, 2.25.4; 3.0.0 | 2.25.4 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- HighData or code can be modified at will.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 4.0 | 6.9 | Medium | CNA (apache.org) |
| CVSS 3.1 | 7.5 | High | NVD |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Output Neutralization for Logs
The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.
How developers prevent this class of flaw
- Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
More Improper Output Neutralization for Logs vulnerabilities (CWE-117)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Patches and release notes
- github.com/apache/logging-log4j2/pull/4074Issue Tracking
Third-party and government advisories
- openwall.com/lists/oss-security/2026/04/10/7Mailing List, Third Party Advisory
Other references
- logging.apache.org/cyclonedx/vdr.xmlProduct
- logging.apache.org/log4j/2.x/manual/layouts.html#RFC5424LayoutTechnical Description
Other vulnerabilities in Apache Log4j Core
- 7.5 High severity
Recent Improper Output Neutralization for Logs vulnerabilities
- 7.2 High severity
- 7.5 High severity
- 9.8 Critical severity
- 8.1 High severity
- 7.2 High severity
- 8.6 High severity
Spotted an error? Tell us.