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-2026-28435

CVE-2026-28435: Yhirose Cpp-httplib DoS Vulnerability

CVE-2026-28435 is a denial of service vulnerability in Yhirose Cpp-httplib that allows attackers to bypass payload limits via compressed requests. This article covers the technical details, affected versions, and mitigation.

Published: March 6, 2026

CVE-2026-28435 Overview

CVE-2026-28435 is a Resource Exhaustion vulnerability affecting cpp-httplib, a popular C++11 single-file header-only cross-platform HTTP/HTTPS library. The vulnerability exists in versions prior to 0.35.0 where the library fails to properly enforce the Server::set_payload_max_length() limit on decompressed request bodies when using HandlerWithContentReader (streaming ContentReader) with compressed content encodings such as gzip.

This flaw allows attackers to send small compressed payloads that expand well beyond the configured payload limit during decompression, effectively bypassing size restrictions and potentially causing denial of service through CPU and memory exhaustion.

Critical Impact

A small malicious compressed payload can expand beyond configured limits, enabling payload size limit bypass and denial of service (CPU/memory exhaustion) on servers using cpp-httplib with streaming content readers and compression support.

Affected Products

  • yhirose cpp-httplib versions prior to 0.35.0
  • Applications using HandlerWithContentReader with compression support enabled
  • HTTP/HTTPS servers built with cpp-httplib that rely on set_payload_max_length() for request size limiting

Discovery Timeline

  • 2026-03-04 - CVE-2026-28435 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-28435

Vulnerability Analysis

The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption). The core issue lies in how cpp-httplib handles content decompression when processing HTTP requests through its streaming content reader interface.

When a server is configured with Server::set_payload_max_length() to limit incoming request body sizes, this restriction is properly enforced on raw compressed payloads. However, when the HandlerWithContentReader streaming interface is used in conjunction with Content-Encoding: gzip (or other supported compression encodings), the library fails to validate the decompressed size against the configured limit.

This creates a classic "decompression bomb" or "zip bomb" attack vector where an attacker can craft a highly compressed payload that expands to a size far exceeding the intended server limits. The impact manifests as memory exhaustion when the decompressed data is buffered, or CPU exhaustion during the decompression process itself.

Root Cause

The root cause is a missing size validation check in the decompression path when using streaming content readers. The set_payload_max_length() configuration was only being applied to the compressed payload size at the network layer, not to the resulting decompressed content being processed by the application. This architectural oversight allows the size limit to be completely bypassed through the use of compression.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a small, highly compressed gzip payload (or using other supported encodings)
  2. Sending an HTTP request to a vulnerable cpp-httplib server with the Content-Encoding: gzip header
  3. The compressed payload passes the set_payload_max_length() check at the network layer
  4. When the server uses HandlerWithContentReader to process the request, decompression occurs without size validation
  5. The decompressed payload expands far beyond configured limits, consuming excessive memory and CPU resources

The vulnerability is particularly dangerous because compression ratios can be extreme for specially crafted data, allowing payloads that expand by factors of 100x or more. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-28435

Indicators of Compromise

  • Unusually high memory consumption on servers using cpp-httplib
  • CPU spikes correlated with incoming HTTP requests containing Content-Encoding: gzip headers
  • Server crashes or out-of-memory errors during request processing
  • Small incoming request payloads triggering disproportionate resource usage

Detection Strategies

  • Monitor for HTTP requests with compression headers (Content-Encoding: gzip, Content-Encoding: deflate) that have unusually small body sizes
  • Implement application-level logging to track decompressed payload sizes versus compressed sizes
  • Deploy network intrusion detection rules to identify potential decompression bomb patterns
  • Audit application dependencies to identify cpp-httplib versions prior to 0.35.0

Monitoring Recommendations

  • Set up alerts for memory and CPU usage anomalies on servers running cpp-httplib-based applications
  • Monitor HTTP access logs for requests with compression encodings targeting streaming endpoints
  • Implement rate limiting on endpoints using HandlerWithContentReader with compression support
  • Use Software Composition Analysis (SCA) tools to track cpp-httplib version across your codebase

How to Mitigate CVE-2026-28435

Immediate Actions Required

  • Upgrade cpp-httplib to version 0.35.0 or later immediately
  • Audit all applications using cpp-httplib to identify affected deployments
  • If immediate upgrade is not possible, consider temporarily disabling compression support on affected endpoints
  • Review and implement network-level rate limiting to reduce exposure

Patch Information

The vulnerability has been fixed in cpp-httplib version 0.35.0. The fix ensures that Server::set_payload_max_length() is properly enforced on decompressed content when using streaming content readers with compressed encodings.

Review the GitHub Commit Details for the specific code changes implementing this fix.

Workarounds

  • Disable compression support on endpoints using HandlerWithContentReader until the library can be upgraded
  • Implement application-level decompressed size validation before processing streamed content
  • Deploy a reverse proxy or WAF in front of cpp-httplib servers to filter potentially malicious compressed payloads
  • Use network-level request body size limits as an additional layer of defense
bash
# Example: Update cpp-httplib in your project
# If using vcpkg package manager
vcpkg upgrade cpp-httplib

# If using the header file directly, download the patched version
curl -o httplib.h https://raw.githubusercontent.com/yhirose/cpp-httplib/v0.35.0/httplib.h

# Verify the version in your codebase
grep -r "CPPHTTPLIB_VERSION" httplib.h

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechCpp Httplib

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • 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 Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-31870: cpp-httplib DoS Vulnerability

  • CVE-2026-22776: cpp-httplib DoS Vulnerability

  • CVE-2026-29076: Yhirose Cpp-httplib Buffer Overflow Flaw

  • CVE-2026-21428: Yhirose Cpp-httplib SSRF 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