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
    • 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-2024-47252

CVE-2024-47252: Apache HTTP Server Log Injection Flaw

CVE-2024-47252 is an information disclosure vulnerability in Apache HTTP Server mod_ssl that allows untrusted clients to inject escape characters into log files. This article covers technical details, affected versions, and fixes.

Published: March 11, 2026

CVE-2024-47252 Overview

CVE-2024-47252 is a log injection vulnerability in the mod_ssl module of Apache HTTP Server versions 2.4.63 and earlier. The vulnerability stems from insufficient escaping of user-supplied data, allowing an untrusted SSL/TLS client to insert escape characters into log files when specific logging configurations are in use.

In logging configurations where CustomLog is used with %{varname}x or %{varname}c directives to log variables provided by mod_ssl (such as SSL_TLS_SNI), neither mod_log_config nor mod_ssl performs proper escaping. This allows unsanitized data provided by malicious clients to appear directly in server log files.

Critical Impact

Attackers can inject malicious escape sequences into Apache log files, potentially enabling log tampering, log analysis tool exploitation, or terminal escape sequence attacks against administrators reviewing logs.

Affected Products

  • Apache HTTP Server versions 2.4.63 and earlier
  • Systems using mod_ssl with CustomLog configurations logging SSL variables
  • Environments with %{SSL_TLS_SNI}x or similar SSL variable logging enabled

Discovery Timeline

  • 2025-07-10 - CVE-2024-47252 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2024-47252

Vulnerability Analysis

This vulnerability is classified under CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences). The issue arises when Apache administrators configure logging to capture SSL/TLS-related variables using the %{varname}x or %{varname}c format specifiers in CustomLog directives.

When a client establishes an SSL/TLS connection and provides a Server Name Indication (SNI) value or other SSL-related data, this information can be logged. However, the mod_ssl module fails to sanitize or escape special characters within these client-supplied values before they are written to log files. This creates an opportunity for attackers to inject escape sequences, control characters, or other potentially malicious data.

Root Cause

The root cause lies in the absence of output encoding between the mod_ssl module and the mod_log_config module. When SSL variables are passed from mod_ssl to the logging system, neither module assumes responsibility for sanitizing the data. The mod_ssl module does not escape the data before providing it, and mod_log_config does not perform additional sanitization when writing SSL-derived variables to log files.

This gap in input validation means that whatever data a client sends in the SNI field or other SSL handshake parameters is written verbatim to the log file, including any embedded escape sequences or control characters.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can exploit this vulnerability by crafting malicious SSL/TLS handshake requests containing specially crafted SNI values or other SSL parameters. When the server logs these values, the injected escape sequences or control characters become part of the log entry.

Potential attack scenarios include:

  • Terminal Escape Sequence Injection: Injecting ANSI escape codes that could affect terminal output when administrators use tools like cat, tail, or less to view logs, potentially hiding malicious entries or manipulating displayed output
  • Log Analysis Tool Exploitation: Crafting payloads that could trigger vulnerabilities in log parsing tools, SIEM systems, or log management platforms
  • Log Tampering: Inserting control characters that could alter how log entries are interpreted or displayed, potentially masking other malicious activity

Detection Methods for CVE-2024-47252

Indicators of Compromise

  • Unusual or non-printable characters appearing in Apache access or SSL logs
  • Log entries containing ANSI escape sequences (e.g., \\x1b[ patterns)
  • Anomalous SNI values in SSL handshake logs that contain control characters
  • Log parsing errors or corruption in log analysis tools

Detection Strategies

  • Implement regular expressions to detect escape sequences in log files, particularly in SSL-related fields
  • Monitor for unusual byte patterns in SNI values during SSL/TLS handshake processing
  • Deploy log integrity monitoring to detect unexpected characters or formatting in log entries
  • Use hexdump or similar tools to inspect raw log content for hidden control characters

Monitoring Recommendations

  • Configure SIEM rules to alert on non-printable ASCII characters in web server logs
  • Implement automated log sanitization checks as part of log ingestion pipelines
  • Review Apache CustomLog configurations to identify instances using %{varname}x or %{varname}c with SSL variables
  • Enable network-level monitoring for abnormal SNI values in SSL/TLS connections

How to Mitigate CVE-2024-47252

Immediate Actions Required

  • Review Apache configurations for CustomLog directives using %{SSL_TLS_SNI}x, %{SSL_CLIENT_S_DN}x, or similar SSL variable logging
  • Consider temporarily removing or modifying logging configurations that log unsanitized SSL variables
  • Upgrade to the latest Apache HTTP Server version that addresses this vulnerability
  • Implement input validation on SNI values at the network perimeter if possible

Patch Information

Apache has addressed this vulnerability in versions after 2.4.63. Organizations should update to the latest stable release of Apache HTTP Server. Detailed security information is available in the Apache HTTPD Vulnerabilities documentation.

Additional security advisories have been published by Openwall OSS-Security and Debian LTS for distributions tracking this CVE.

Workarounds

  • Modify CustomLog configurations to avoid logging SSL variables using %{varname}x or %{varname}c format specifiers until patching is complete
  • Implement a log post-processing pipeline that sanitizes escape sequences before logs are stored or analyzed
  • Use secure log viewing tools that do not interpret escape sequences (e.g., cat -v or dedicated log viewers)
  • Consider restricting access to raw log files to prevent terminal escape sequence attacks against administrators
bash
# Example: Safer log viewing to prevent terminal escape injection
# Use cat -v to display control characters visibly
cat -v /var/log/apache2/ssl_access.log

# Or use hexdump for raw inspection
hexdump -C /var/log/apache2/ssl_access.log | less

# Review CustomLog configurations for SSL variable logging
grep -r "CustomLog" /etc/apache2/ | grep -E "%\{.*\}[xc]"

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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-150
  • Technical References
  • Openwall OSS-Security Email Update

  • Openwall OSS-Security Email Discussion

  • Debian LTS Security Announcement
  • Vendor Resources
  • Apache HTTPD Vulnerabilities
  • Related CVEs
  • CVE-2026-24735: Apache Answer Information Disclosure Issue

  • CVE-2024-38476: Apache HTTP Server Info Disclosure Flaw

  • CVE-2024-39884: Apache HTTP Server Info Disclosure Flaw

  • CVE-2022-30556: Apache HTTP Server Information Disclosure
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