The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-34478

CVE-2026-34478: Apache Log4j Core Log Injection Vulnerability

CVE-2026-34478 is a log injection flaw in Apache Log4j Core versions 2.21.0-2.25.3 affecting Rfc5424Layout users. CRLF injection risks expose systems to log tampering. This article covers technical details, impact, and mitigation.

Published: April 17, 2026

CVE-2026-34478 Overview

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. This vulnerability affects users of stream-based syslog services who configure Rfc5424Layout directly, potentially allowing attackers to inject malicious content into log streams.

Two distinct issues affect users:

  1. 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.
  2. 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.

Critical Impact

Attackers can exploit CRLF injection to manipulate log files, forge log entries, perform log injection attacks, or bypass security controls that rely on log integrity. Users of TCP-based syslog services with direct Rfc5424Layout configuration are at risk.

Affected Products

  • Apache Log4j Core 2.21.0 through 2.25.3
  • Applications using Rfc5424Layout directly with stream-based syslog services
  • Systems using TCP framing (RFC 6587) or TLS framing (RFC 5425)

Discovery Timeline

  • April 10, 2026 - CVE-2026-34478 published to NVD
  • April 13, 2026 - Last updated in NVD database

Technical Details for CVE-2026-34478

Vulnerability Analysis

This vulnerability is classified as CWE-117: Improper Output Neutralization for Logs. The core issue stems from silent attribute renames in the Rfc5424Layout component that broke security-critical functionality without user notification.

When the newLineEscape attribute was renamed, applications that previously relied on this configuration to sanitize newline characters in log messages no longer received this protection. This creates an opportunity for attackers to inject CRLF sequences (\r\n) into log data, which can be used to forge log entries or manipulate log processing systems.

Similarly, the renamed useTlsMessageFormat attribute caused an inadvertent downgrade from TLS framing to unframed TCP, compounding the security impact by removing both transport security expectations and newline escaping protections.

Root Cause

The root cause is improper handling of configuration attribute renames in the Apache Log4j Core codebase. Security-relevant configuration attributes (newLineEscape and useTlsMessageFormat) were renamed without proper deprecation notices, documentation updates, or backward compatibility measures. This caused silent failures in security mechanisms that users expected to be active based on their existing configurations.

Attack Vector

The vulnerability is exploitable over the network. An attacker who can influence log message content (such as through user input fields, HTTP headers, or other data sources that get logged) can inject CRLF sequences that are no longer properly escaped.

The attack scenario involves:

  1. The attacker identifies an application using Apache Log4j Core 2.21.0 - 2.25.3 with Rfc5424Layout
  2. The attacker supplies malicious input containing CRLF sequences to a field that gets logged
  3. Due to the broken newLineEscape configuration, the CRLF sequences pass through unescaped
  4. The attacker can forge additional log entries, manipulate log analysis tools, or inject commands into log processing pipelines

For detailed technical analysis of the configuration changes, refer to the GitHub Pull Request that addresses this issue.

Detection Methods for CVE-2026-34478

Indicators of Compromise

  • Log entries containing unexpected newline characters or CRLF sequences
  • Anomalous log formatting inconsistent with the RFC 5424 specification
  • Unusual patterns in syslog streams indicating potential log injection
  • Configuration files referencing old attribute names (newLineEscape, useTlsMessageFormat) that are no longer being honored

Detection Strategies

  • Audit Log4j configurations for use of Rfc5424Layout with stream-based syslog appenders
  • Scan application dependencies to identify Log4j Core versions between 2.21.0 and 2.25.3
  • Monitor log output for malformed RFC 5424 messages or unexpected line breaks
  • Review network traffic for unencrypted syslog data where TLS was expected

Monitoring Recommendations

  • Implement log integrity monitoring to detect injected or forged log entries
  • Set up alerts for Log4j configuration parsing warnings related to unrecognized attributes
  • Monitor syslog receivers for malformed message patterns indicative of CRLF injection
  • Track application dependency versions using Software Bill of Materials (SBOM) tools

How to Mitigate CVE-2026-34478

Immediate Actions Required

  • Upgrade Apache Log4j Core to version 2.25.4 or later immediately
  • Audit all applications using Rfc5424Layout with TCP or TLS-based syslog services
  • Verify that newLineEscape and useTlsMessageFormat configurations are using the correct attribute names for your version
  • Review log integrity for signs of exploitation during the vulnerable window

Patch Information

Apache has released Log4j Core 2.25.4 which corrects both configuration attribute issues. Users are strongly advised to upgrade to this version. The fix restores the expected behavior of newline escaping and TLS message formatting.

Additional resources:

  • Apache Log4j Security Advisory
  • GitHub Pull Request with Fix
  • Apache Mailing List Discussion

Workarounds

  • If immediate upgrade is not possible, switch to using SyslogAppender which is not affected by this vulnerability
  • Implement additional input validation to strip CRLF sequences before data reaches logging components
  • Consider temporarily switching to non-stream-based log transports until the upgrade can be completed
  • Deploy network-level monitoring to detect CRLF injection attempts in syslog traffic
bash
# Verify your Log4j Core version
find / -name "log4j-core*.jar" 2>/dev/null | xargs -I {} unzip -p {} META-INF/MANIFEST.MF | grep Implementation-Version

# Check for vulnerable Rfc5424Layout configurations
grep -r "Rfc5424Layout" /path/to/application/config/

# Update Log4j Core dependency in Maven pom.xml
# Change version to 2.25.4 or later

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechApache Log4j

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-117
  • Technical References
  • GitHub Pull Request

  • Apache Mailing List Discussion

  • Apache CycloneDX Document

  • Apache Log4j RFC5424 Layout

  • Apache Log4j CVE-2026-34478

  • OpenWall OSS-Security Post
  • Related CVEs
  • CVE-2025-68161: Apache Log4j Information Disclosure Bug

  • CVE-2020-9488: Apache Log4j Information Disclosure Bug

  • CVE-2026-34479: Apache Log4j XML Output Vulnerability

  • CVE-2026-34480: Apache Log4j Core XXE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English