Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-52887

CVE-2025-52887: Cpp-httplib DoS Vulnerability

CVE-2025-52887 is a denial of service flaw in Yhirose Cpp-httplib caused by unlimited HTTP headers leading to memory exhaustion. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 21, 2026

CVE-2025-52887 Overview

CVE-2025-52887 is a denial of service vulnerability affecting cpp-httplib, a C++11 single-file header-only cross platform HTTP/HTTPS library. In version 0.21.0, when many HTTP header fields are passed in, the library does not limit the number of headers, and the memory associated with the headers will not be released when the connection is disconnected. This leads to potential exhaustion of system memory and results in a server crash or unresponsiveness.

Critical Impact

Remote attackers can exhaust server memory by sending requests with excessive HTTP headers, causing service unavailability without authentication.

Affected Products

  • yhirose cpp-httplib version 0.21.0

Discovery Timeline

  • 2025-06-26 - CVE-2025-52887 published to NVD
  • 2025-08-06 - Last updated in NVD database

Technical Details for CVE-2025-52887

Vulnerability Analysis

This vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption). The cpp-httplib library fails to implement proper bounds checking on the number of HTTP headers that can be accepted in a single request. When a malicious client sends requests containing an excessive number of HTTP headers, the server allocates memory for each header without enforcing any upper limit. Furthermore, the memory allocated for these headers is not properly released when the connection is terminated, creating a memory leak condition.

The attack can be executed remotely over the network without requiring any authentication or user interaction. While the vulnerability does not compromise data confidentiality or integrity, it has a high impact on availability, as repeated exploitation can rapidly exhaust available system memory, forcing the server to crash or become completely unresponsive to legitimate requests.

Root Cause

The root cause lies in the absence of input validation controls for HTTP header counts within the request parsing logic. The library's header parsing implementation accepts headers indefinitely without checking against a maximum threshold. Combined with improper memory management that fails to deallocate header-related memory upon connection termination, this creates a resource exhaustion condition that attackers can exploit.

Attack Vector

An attacker can exploit this vulnerability by establishing connections to a vulnerable cpp-httplib server and sending HTTP requests containing thousands or millions of HTTP header fields. Since no authentication is required and the attack can be launched over the network, the barrier to exploitation is low. By repeatedly sending such malformed requests, an attacker can quickly consume all available server memory.

The attack pattern involves crafting HTTP requests with an abnormally large number of headers. Each header consumes memory on the server, and since this memory is not released when connections close, the cumulative effect leads to memory exhaustion. This type of attack is particularly effective because it requires minimal attacker resources while causing significant resource consumption on the target system.

Detection Methods for CVE-2025-52887

Indicators of Compromise

  • Unusual spikes in server memory consumption without corresponding increase in legitimate traffic
  • HTTP requests containing abnormally high numbers of header fields from single source IPs
  • Server process memory growing continuously without stabilization
  • Connection patterns showing repeated connections with immediate disconnections

Detection Strategies

  • Monitor server process memory usage for unexpected growth patterns that don't correlate with traffic volume
  • Implement network-level inspection to flag HTTP requests with header counts exceeding reasonable thresholds (typically more than 100 headers)
  • Configure logging to capture and alert on requests with excessive header counts
  • Deploy application performance monitoring to detect memory leak patterns in cpp-httplib-based services

Monitoring Recommendations

  • Set up memory utilization alerts for servers running cpp-httplib applications with thresholds that trigger before exhaustion
  • Monitor connection rates and patterns for anomalies that may indicate exploitation attempts
  • Review web server logs for requests with unusually large header sections
  • Implement rate limiting on connections from individual IP addresses to slow potential attacks

How to Mitigate CVE-2025-52887

Immediate Actions Required

  • Upgrade cpp-httplib to version 0.22.0 or later immediately, which contains the official patch for this vulnerability
  • If immediate upgrade is not possible, deploy a reverse proxy or web application firewall in front of vulnerable services to limit header counts
  • Monitor affected systems for signs of exploitation while patching is in progress
  • Consider temporarily restricting network access to affected services if they are internet-facing and cannot be patched immediately

Patch Information

The vulnerability has been patched in cpp-httplib version 0.22.0. The fix is available in commit 28dcf379e82a2cdb544d812696a7fd46067eb7f9. Organizations should update to the patched version by updating their header file or dependency management system. For more details, refer to the GitHub Security Advisory and the patch commit.

Workarounds

  • Deploy a reverse proxy (such as nginx or HAProxy) configured to reject requests with excessive headers before they reach the cpp-httplib application
  • Implement connection rate limiting at the network or load balancer level to slow down potential exploitation attempts
  • Configure web application firewall rules to block HTTP requests containing more than a reasonable number of headers (e.g., 100)
  • Consider network segmentation to limit exposure of vulnerable services while awaiting patching
bash
# Example nginx configuration to limit header count
# Add to server or location block
large_client_header_buffers 4 8k;
client_header_buffer_size 1k;

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechCpp Htttplib

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-46728: Cpp-httplib DoS Vulnerability Explained

  • CVE-2026-34441: Yhirose Cpp-httplib CSRF 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