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

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

CVE-2026-29076 is a buffer overflow vulnerability in Yhirose Cpp-httplib caused by regex backtracking in multipart headers. Attackers can crash servers via crafted requests. This article covers technical details, versions, and fixes.

Published: March 13, 2026

CVE-2026-29076 Overview

CVE-2026-29076 is a stack overflow vulnerability in cpp-httplib, a popular C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to version 0.37.0, the library uses std::regex (libstdc++) to parse RFC 5987 encoded filename* values in multipart Content-Disposition headers. The regex engine in libstdc++ implements backtracking via deep recursion, consuming one stack frame per input character. An attacker can send a single HTTP POST request with a crafted filename* parameter that causes uncontrolled stack growth, resulting in a stack overflow (SIGSEGV) that crashes the server process.

Critical Impact

A remote unauthenticated attacker can crash any server using vulnerable versions of cpp-httplib by sending a single malicious HTTP POST request with a specially crafted multipart Content-Disposition header, causing a complete denial of service.

Affected Products

  • yhirose cpp-httplib versions prior to 0.37.0

Discovery Timeline

  • 2026-03-07 - CVE-2026-29076 published to NVD
  • 2026-03-09 - Last updated in NVD database

Technical Details for CVE-2026-29076

Vulnerability Analysis

This vulnerability is classified under CWE-674 (Uncontrolled Recursion). The root cause lies in how cpp-httplib processes multipart form data headers. When parsing Content-Disposition headers containing RFC 5987 encoded filename parameters, the library relied on std::regex from libstdc++ to extract and validate the filename values.

The libstdc++ implementation of std::regex uses a backtracking algorithm that is implemented through deep recursion rather than iteration. Each character in the input string requires a new stack frame during the regex matching process. When an attacker provides a sufficiently long or specially crafted filename* parameter value, the regex engine recursively processes each character, rapidly exhausting the available stack space.

The attack requires no authentication and can be executed with a single HTTP POST request. The server process receives a SIGSEGV signal when the stack overflows, resulting in an immediate crash and denial of service to all clients.

Root Cause

The vulnerability stems from the use of std::regex with libstdc++ for parsing Content-Disposition headers. The libstdc++ regex implementation uses recursive backtracking which is vulnerable to stack exhaustion attacks. The regex pattern R"~(^Content-Disposition:\s*form-data;\s*(.*)$)~" was applied to user-controlled header content without adequate protection against pathological input that could trigger excessive recursion depth.

Attack Vector

The attack is network-based and requires no user interaction or authentication. An attacker constructs an HTTP POST request with a multipart form body containing a Content-Disposition header with a maliciously crafted filename* parameter. The parameter value is designed to maximize the recursion depth of the regex engine, typically by using a long string or specific patterns that cause exponential backtracking.

c
             file_.content_type =
                 trim_copy(header.substr(str_len(header_content_type)));
           } else {
-            thread_local const std::regex re_content_disposition(
-                R"~(^Content-Disposition:\s*form-data;\s*(.*)$)~",
-                std::regex_constants::icase);
-
-            std::smatch m;
-            if (std::regex_match(header, m, re_content_disposition)) {
+            std::string disposition_params;
+            if (parse_content_disposition(header, disposition_params)) {
               Params params;
-              parse_disposition_params(m[1], params);
+              parse_disposition_params(disposition_params, params);

               auto it = params.find("name");
               if (it != params.end()) {

Source: GitHub Commit de296af

The patch replaces the vulnerable std::regex_match approach with a custom parse_content_disposition function that parses the header without relying on recursive regex matching, eliminating the stack overflow risk.

Detection Methods for CVE-2026-29076

Indicators of Compromise

  • Server processes crashing with SIGSEGV signals during HTTP request processing
  • Core dumps showing deep stack traces in regex-related functions
  • Unusual HTTP POST requests with abnormally large Content-Disposition header values
  • Multiple server restarts or service interruptions without apparent cause

Detection Strategies

  • Monitor for SIGSEGV signals in processes using cpp-httplib
  • Implement web application firewall rules to detect abnormally long Content-Disposition headers
  • Review HTTP access logs for POST requests with suspicious multipart form data patterns
  • Deploy runtime protection that monitors stack usage and detects stack exhaustion attempts

Monitoring Recommendations

  • Configure process monitoring to alert on unexpected crashes of HTTP services
  • Implement request size and header length limits at the load balancer or reverse proxy level
  • Enable crash reporting and core dump analysis for early detection of exploitation attempts
  • Monitor for patterns of repeated service restarts that may indicate ongoing attack attempts

How to Mitigate CVE-2026-29076

Immediate Actions Required

  • Upgrade cpp-httplib to version 0.37.0 or later immediately
  • If immediate upgrade is not possible, implement request filtering at the reverse proxy level to limit Content-Disposition header sizes
  • Review and audit all applications using cpp-httplib to identify affected deployments
  • Enable crash monitoring and alerting for services using the vulnerable library

Patch Information

The vulnerability has been patched in cpp-httplib version 0.37.0. The fix replaces the vulnerable std::regex-based parsing with a custom parse_content_disposition function that does not rely on recursive regex matching. Users should upgrade to version 0.37.0 or later by updating their header file from the official GitHub release.

For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-qq6v-r583-3h69 and the commit de296af3eb5b0d5c116470e033db900e4812c5e6.

Workarounds

  • Implement a reverse proxy or WAF rule to reject requests with Content-Disposition headers exceeding a reasonable length threshold
  • Limit the maximum size of multipart form data at the network edge
  • Consider implementing request rate limiting to reduce the impact of potential DoS attempts
  • Run vulnerable services with stack size limits and automatic restart capabilities as a temporary mitigation
bash
# Configuration example for nginx to limit header sizes
# Add to nginx.conf or server block
large_client_header_buffers 4 8k;
client_header_buffer_size 1k;

# Limit overall request body size for multipart uploads
client_max_body_size 10m;

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechCpp Httplib

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-674
  • Technical References
  • GitHub Release v0.37.0
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Security Advisory GHSA-qq6v-r583-3h69
  • Related CVEs
  • CVE-2026-31870: cpp-httplib DoS Vulnerability

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

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

  • 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