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-2025-54813

CVE-2025-54813: Apache Log4cxx Information Disclosure

CVE-2025-54813 is an information disclosure vulnerability in Apache Log4cxx caused by improper output neutralization in JSONLayout. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 29, 2026

CVE-2025-54813 Overview

CVE-2025-54813 is an Improper Output Neutralization for Logs vulnerability affecting Apache Log4cxx, the popular C++ logging framework from the Apache Software Foundation. When using JSONLayout, not all payload bytes are properly escaped. If an attacker-supplied message contains certain non-printable characters, these will be passed along in the message and written out as part of the JSON message. This may prevent applications that consume these logs from correctly interpreting the information within them.

This vulnerability is classified under CWE-117 (Improper Output Neutralization for Logs) and affects Apache Log4cxx versions prior to 1.5.0. Users are strongly recommended to upgrade to version 1.5.0, which addresses this security issue.

Critical Impact

Attackers can inject malicious non-printable characters into log messages, potentially corrupting JSON log output and breaking log analysis pipelines. This could enable log injection attacks, hinder forensic investigations, or mask malicious activity in environments relying on centralized log management systems.

Affected Products

  • Apache Log4cxx versions prior to 1.5.0
  • Applications using JSONLayout for log formatting
  • Systems consuming JSON-formatted logs from affected Log4cxx deployments

Discovery Timeline

  • 2025-08-22 - CVE-2025-54813 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2025-54813

Vulnerability Analysis

This vulnerability stems from insufficient output encoding in Apache Log4cxx's JSONLayout component. When log messages containing non-printable characters are processed through JSONLayout, the library fails to properly escape these characters before writing them to the JSON output. This creates malformed JSON that downstream log consumers cannot parse correctly.

The attack surface is accessible over the network, as any input that flows into log messages can potentially carry the malicious payload. The vulnerability requires some prerequisites to be exploited effectively (AT:P), but does not require authentication or user interaction, making it accessible to unauthenticated remote attackers in many scenarios.

While this vulnerability does not directly compromise confidentiality, it poses integrity risks to both the vulnerable system and downstream systems that consume the logs (VI:L, SI:L). Attackers could leverage this flaw to inject false log entries, corrupt audit trails, or cause denial of service in log processing pipelines.

Root Cause

The root cause lies in the incomplete character escaping implementation within the JSONLayout class. JSON specification requires certain control characters and non-printable bytes to be escaped using unicode escape sequences (e.g., \\u0000). The affected versions of Log4cxx fail to escape all such characters, allowing raw byte sequences to pass through into the JSON output.

This represents a classic log injection vulnerability where user-controlled input is written to logs without proper sanitization, violating the principle of output encoding for the target context (JSON format).

Attack Vector

The attack vector operates through network-accessible input channels that eventually flow into log statements. An attacker can craft input containing specific non-printable characters (control characters, null bytes, or other special byte sequences) that the application logs.

When JSONLayout processes these messages, the non-printable characters are written directly into the JSON output without proper escaping. This can result in:

  1. Malformed JSON - Downstream log aggregators and SIEM systems fail to parse the corrupted JSON
  2. Log injection - Attackers can inject arbitrary content that appears as separate log entries
  3. Data exfiltration masking - Malicious activity can be hidden within corrupted log entries
  4. Compliance violations - Incomplete or corrupted audit logs may violate regulatory requirements

The vulnerability manifests in the JSONLayout output formatting routines where log message content is serialized to JSON format. For technical implementation details, refer to the GitHub Pull Request #512 which contains the fix.

Detection Methods for CVE-2025-54813

Indicators of Compromise

  • Malformed or unparseable JSON entries in application logs using Log4cxx
  • Log aggregation systems reporting parsing errors for JSON-formatted logs
  • Unexpected control characters or binary data appearing in log files
  • SIEM alerts indicating log ingestion failures from affected systems

Detection Strategies

  • Implement JSON schema validation on log ingestion pipelines to detect malformed entries
  • Monitor log aggregation systems for increased parsing error rates
  • Deploy application-level input validation to flag non-printable characters in user input
  • Use byte-level inspection tools to identify non-printable characters in log output files

Monitoring Recommendations

  • Set up alerts for JSON parsing failures in log processing infrastructure
  • Monitor for unusual patterns in log file sizes or entry counts that may indicate injection
  • Implement integrity checks on critical audit logs
  • Review Log4cxx configuration across your environment to identify systems using JSONLayout

How to Mitigate CVE-2025-54813

Immediate Actions Required

  • Inventory all applications using Apache Log4cxx and identify those using JSONLayout
  • Prioritize upgrade to Log4cxx version 1.5.0 for systems processing untrusted input
  • Implement input validation to sanitize or reject non-printable characters before logging
  • Review downstream log consumers to ensure they can handle potential malformed input gracefully

Patch Information

Apache has released version 1.5.0 of Log4cxx which resolves this vulnerability. The fix ensures all non-printable characters are properly escaped when using JSONLayout. Users should upgrade to this version as soon as possible.

For detailed patch information, refer to the Apache Security Advisory and the GitHub Pull Request #512.

Additional security announcements are available through the OpenWall OSS Security mailing list and the Debian LTS Security Announcement.

Workarounds

  • Switch from JSONLayout to alternative layout formats (e.g., PatternLayout) until upgrade is possible
  • Implement application-level input sanitization to strip non-printable characters before logging
  • Add a sanitization layer in front of log aggregators to validate JSON before ingestion
  • Use log forwarding proxies that can detect and quarantine malformed log entries
bash
# Configuration example: Verify Log4cxx version and check for JSONLayout usage
# Check installed Log4cxx version
pkg-config --modversion liblog4cxx 2>/dev/null || echo "Log4cxx version check unavailable"

# Search for JSONLayout usage in configuration files
find /etc /opt /var -name "*.xml" -exec grep -l "JSONLayout" {} \; 2>/dev/null

# Review Log4cxx configuration for JSONLayout patterns
grep -r "JSONLayout" /path/to/application/config/

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 Log4cxx

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/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
  • OpenWall OSS Security Update

  • Debian LTS Security Announcement
  • Vendor Resources
  • GitHub Pull Request

  • Apache Security Advisory CVE-2025-54813
  • Related CVEs
  • CVE-2026-40023: Apache Log4cxx Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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