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-53094

CVE-2025-53094: ESPAsyncWebServer CRLF Injection Flaw

CVE-2025-53094 is a CRLF injection vulnerability in ESPAsyncWebServer for ESP32, ESP8266, and RP2040 devices that enables attackers to manipulate HTTP headers and responses. This article covers technical details, affected versions, and fixes.

Published: May 11, 2026

CVE-2025-53094 Overview

CVE-2025-53094 is a CRLF (Carriage Return Line Feed) injection vulnerability in ESPAsyncWebServer, an asynchronous HTTP and WebSocket server library used on ESP32, ESP8266, RP2040, and RP2350 microcontrollers. The flaw affects all versions up to and including 3.7.8. Unsanitized input passed into HTTP header names or values inside AsyncWebHeader.cpp allows attackers to inject \r and \n characters. This injection enables arbitrary HTTP header manipulation and response splitting. The vulnerability is tracked under [CWE-93] (Improper Neutralization of CRLF Sequences). A fix is available in pull request 211 and is expected in version 3.7.9.

Critical Impact

Network-reachable attackers can inject arbitrary HTTP headers, enabling response splitting, cache poisoning, and session manipulation against IoT devices running affected firmware.

Affected Products

  • ESPAsyncWebServer library versions ≤ 3.7.8
  • Firmware targeting ESP32 and ESP8266 microcontrollers using the library
  • Firmware targeting RP2040 and RP2350 microcontrollers using the library

Discovery Timeline

  • 2025-06-27 - CVE-2025-53094 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-53094

Vulnerability Analysis

The vulnerability resides in the HTTP header construction logic of AsyncWebHeader.cpp. The library accepts header names and values without filtering for control characters such as \r (CR, 0x0D) and \n (LF, 0x0A). HTTP uses the CRLF sequence as a structural delimiter between headers and between the header block and response body. When an attacker injects raw CR or LF bytes into attacker-controlled header inputs, the parser on the receiving end interprets those bytes as new header boundaries.

This allows attackers to terminate the current header prematurely, append arbitrary additional headers, or close the header section entirely and inject a synthetic response body. The injection point exists in a library that frequently runs on internet-exposed IoT devices, including home automation hubs, industrial sensors, and consumer ESP32 projects. The EPSS score is 0.331% with a 55.99 percentile.

Root Cause

The root cause is missing input neutralization for CRLF byte sequences in header field construction. The header serialization code in AsyncWebHeader.cpp concatenates user-influenced strings directly into the wire-format HTTP response without validating that the inputs contain only permitted header characters defined in RFC 7230. The flaw maps to [CWE-93].

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker sends crafted HTTP requests containing CRLF sequences in fields that the application later reflects into response headers, such as cookies, redirect targets, or custom header echoes. The injected bytes split the response, allowing the attacker to forge headers like Set-Cookie, Location, or Content-Type. Successful exploitation enables HTTP response splitting, web cache poisoning of intermediate proxies, cross-site scripting via injected body content, and session fixation. Technical details of the vulnerable function are documented in the GitHub code snippet.

Detection Methods for CVE-2025-53094

Indicators of Compromise

  • Inbound HTTP requests containing URL-encoded %0d, %0a, %0D%0A, or raw CR/LF bytes in query parameters, cookies, or header values
  • HTTP responses from ESP-based devices containing unexpected duplicate headers such as multiple Set-Cookie or Location lines
  • Anomalous Content-Length mismatches between proxy logs and device responses

Detection Strategies

  • Inventory firmware images and PlatformIO/Arduino dependencies for ESPAsyncWebServer versions at or below 3.7.8
  • Inspect web application firewall (WAF) and reverse proxy logs for CRLF byte patterns in request fields that flow into headers
  • Apply WAF signatures that block requests containing raw or encoded CRLF sequences in non-body parameters

Monitoring Recommendations

  • Forward HTTP access logs from devices and upstream proxies to a centralized analytics platform for CRLF pattern matching
  • Monitor for unusual outbound redirects or cookie-setting behavior originating from IoT device endpoints
  • Alert on responses where the same header name appears multiple times unexpectedly

How to Mitigate CVE-2025-53094

Immediate Actions Required

  • Identify all firmware builds and projects depending on ESPAsyncWebServer ≤ 3.7.8 and schedule rebuilds against the patched release
  • Restrict network exposure of ESP-based HTTP services to trusted management networks or VPN segments
  • Deploy WAF or reverse proxy rules that strip CR and LF bytes from request headers, cookies, and query parameters before they reach the device

Patch Information

The maintainers merged a fix in pull request 211, which adds input neutralization for CR and LF bytes in AsyncWebHeader.cpp. The fix is expected to ship in version 3.7.9. Refer to the GitHub Security Advisory GHSA-87j8-6f7g-h8wh for advisory details. Rebuild firmware against version 3.7.9 or later and redeploy to all affected devices.

Workarounds

  • Sanitize all application-level inputs by rejecting or stripping \r and \n characters before passing them to header-setting APIs
  • Place affected devices behind a hardened reverse proxy that normalizes HTTP traffic and drops malformed headers
  • Disable any device endpoints that reflect user-controlled values into response headers until firmware is updated
bash
# Example WAF rule (ModSecurity) blocking CRLF injection in headers and query strings
SecRule ARGS|REQUEST_HEADERS|REQUEST_COOKIES "@rx (?:\r|\n|%0[ad]|%0D%0A)" \
    "id:1005309,phase:2,deny,status:400,log,msg:'CRLF injection attempt - CVE-2025-53094'"

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechEspasyncwebserver

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.33%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/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-93
  • Technical References
  • GitHub Code Snippet

  • GitHub Pull Request

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer 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