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

CVE-2025-9648: CivetWeb Library DoS Vulnerability

CVE-2025-9648 is a denial of service flaw in CivetWeb library that causes infinite loops via crafted POST requests with null bytes. This post covers the technical details, affected versions, impact, and mitigation.

Published: May 11, 2026

CVE-2025-9648 Overview

A denial of service vulnerability exists in the CivetWeb embedded web server library's mg_handle_form_request function. Remote attackers can trigger an infinite loop by sending a crafted HTTP POST request containing a null byte in the payload. The server consumes CPU resources during form data parsing and becomes unresponsive to legitimate traffic after multiple malicious requests. The flaw stems from improper handling of null bytes in URL-encoded form data, classified as [CWE-158] (Improper Neutralization of Null Byte or NUL Character). The issue was fixed in commit 782e189. Only applications that link against the CivetWeb library are affected. The standalone executable pre-built by the vendor does not contain the vulnerable code path.

Critical Impact

Unauthenticated remote attackers can exhaust CPU resources and render CivetWeb-based services unresponsive by sending crafted HTTP POST requests with embedded null bytes.

Affected Products

  • CivetWeb library (versions prior to commit 782e189)
  • Applications embedding the CivetWeb library for HTTP form handling
  • CivetWeb standalone executable pre-built by the vendor is NOT affected

Discovery Timeline

  • 2025-09-29 - CVE-2025-9648 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-9648

Vulnerability Analysis

The vulnerability resides in the mg_handle_form_request function within src/civetweb.c. This function parses URL-encoded form data submitted via HTTP POST requests. When the parser encounters a null byte (\0) within the form payload, the parsing loop fails to advance past the offending character. The function enters an infinite loop and pins a CPU core at 100% utilization.

Each malicious request consumes one worker thread. An attacker who issues multiple requests in parallel exhausts the available worker pool. The web server stops responding to legitimate HTTP traffic, achieving denial of service without authentication.

The vulnerability does not affect data confidentiality or integrity. It targets availability only, consistent with the CVSS vector indicating high availability impact and no confidentiality or integrity impact.

Root Cause

The parser does not correctly neutralize null bytes in URL-encoded form input. URL-encoded data may contain a %00 sequence, which the decoder converts to a null byte. The subsequent parsing loop relies on string boundaries that the null byte disrupts, causing the loop counter to stall.

Attack Vector

An unauthenticated remote attacker sends an HTTP POST request with Content-Type: application/x-www-form-urlencoded and a body containing %00 within form field values. The attack requires no user interaction and no privileges. The attacker repeats the request to exhaust worker threads.

c
// Source: https://github.com/civetweb/civetweb/commit/782e18903515f43bafbf2e668994e82bdfa51133
// Patch in src/civetweb.c - "Make parsing of URL encoded forms more robust"
-/* Copyright (c) 2013-2024 the Civetweb developers
+/* Copyright (c) 2013-2025 the Civetweb developers
  * Copyright (c) 2004-2013 Sergey Lyubka
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy

The full patch hardens the form parser so null bytes no longer stall the parsing loop. Refer to the CivetWeb Commit Changes and CivetWeb GitHub Issue #1348 for full technical context.

Detection Methods for CVE-2025-9648

Indicators of Compromise

  • HTTP POST requests containing %00 sequences within URL-encoded form bodies from external sources
  • Sustained 100% CPU utilization on one or more CivetWeb worker threads without corresponding response traffic
  • Increased TCP connections in ESTABLISHED state to the CivetWeb listener with no application-layer responses
  • Web server logs showing accepted POST requests with no matching completion entries

Detection Strategies

  • Inspect HTTP request bodies at a web application firewall or reverse proxy for %00 byte sequences in application/x-www-form-urlencoded payloads
  • Monitor process-level CPU consumption for CivetWeb-embedded applications and alert on sustained spikes
  • Correlate accepted POST requests with response status codes; alert when responses are not emitted within an expected window
  • Track worker thread counts and queue depth to detect exhaustion patterns

Monitoring Recommendations

  • Forward CivetWeb access logs and host CPU telemetry to a centralized log platform for correlation
  • Establish baselines for normal POST request volume and CPU usage per service, then alert on deviations
  • Enable rate limiting at the reverse proxy layer for unauthenticated POST endpoints
  • Periodically scan dependency manifests to identify applications that statically link the vulnerable CivetWeb library

How to Mitigate CVE-2025-9648

Immediate Actions Required

  • Identify all applications embedding the CivetWeb library and update them to a build that includes commit 782e189 or later
  • Rebuild and redeploy dependent applications, as the fix is in the library source rather than a binary patch
  • Restrict network exposure of CivetWeb-based services to trusted networks where feasible
  • Deploy WAF rules that reject HTTP POST bodies containing %00 in URL-encoded form data

Patch Information

The vulnerability is fixed in CivetWeb commit 782e18903515f43bafbf2e668994e82bdfa51133, titled "Make parsing of URL encoded forms more robust." Application maintainers must pull the patched source, recompile, and redistribute. The vendor's pre-built standalone executable does not invoke the vulnerable code path and does not require updating. See the CERT Poland CVE Advisory for additional vendor coordination details.

Workarounds

  • Place a reverse proxy in front of CivetWeb services that strips or rejects requests containing %00 in form bodies
  • Disable HTTP form handling endpoints that are not required by the application
  • Apply per-source-IP rate limiting on POST endpoints to slow exploitation attempts
  • Set aggressive request timeouts at the proxy layer so stalled worker threads are reaped by upstream cancellation
bash
# Example nginx reverse proxy rule to block null bytes in POST bodies
location / {
    if ($request_method = POST) {
        if ($request_body ~* "%00") {
            return 400;
        }
    }
    proxy_pass http://civetweb_backend;
    proxy_read_timeout 10s;
    proxy_send_timeout 10s;
}

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechCivetweb

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.89%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-158
  • Technical References
  • CERT Poland CVE Advisory

  • GitHub CivetWeb Repository

  • CivetWeb Commit Changes

  • CivetWeb GitHub Issue #1348
  • Related CVEs
  • CVE-2026-5789: CivetWeb Privilege Escalation Vulnerability

  • CVE-2025-55763: CivetWeb URI Parser RCE 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