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

CVE-2025-53628: Cpp-httplib Buffer Overflow Vulnerability

CVE-2025-53628 is a buffer overflow vulnerability in Yhirose cpp-httplib that allows attackers to allocate memory arbitrarily. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published: April 29, 2026

CVE-2025-53628 Overview

CVE-2025-53628 is a resource exhaustion vulnerability affecting cpp-httplib, a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to version 0.20.1, cpp-httplib does not enforce a limit for individual line lengths when parsing HTTP requests. This allows an attacker to exploit the lack of boundary checking to force arbitrary memory allocation, potentially leading to denial of service conditions or other memory-related impacts.

Critical Impact

Remote attackers can cause memory exhaustion in applications using vulnerable versions of cpp-httplib by sending specially crafted HTTP requests with excessively long lines, potentially crashing services or degrading system performance.

Affected Products

  • yhirose cpp-httplib versions prior to 0.20.1
  • Applications and services embedding cpp-httplib as a dependency
  • HTTP/HTTPS servers built using vulnerable cpp-httplib versions

Discovery Timeline

  • July 10, 2025 - CVE-2025-53628 published to NVD
  • August 6, 2025 - Last updated in NVD database

Technical Details for CVE-2025-53628

Vulnerability Analysis

This vulnerability stems from CWE-770 (Allocation of Resources Without Limits or Throttling) and is also associated with CWE-444 (Inconsistent Interpretation of HTTP Requests). The cpp-httplib library, prior to version 0.20.1, failed to implement any maximum length restriction when reading individual lines from HTTP requests. When parsing HTTP headers or request lines, the library would continue allocating memory to store arbitrarily long input lines without bounds checking.

An attacker can exploit this behavior by sending HTTP requests containing extremely long header lines or request lines. Since the library allocates memory proportionally to the input length without restriction, a malicious actor can force the target application to consume excessive amounts of memory. This can result in memory exhaustion, application crashes, or degraded performance for other services on the same system.

This vulnerability is related to CVE-2025-53629, which addresses similar resource management issues in the same library.

Root Cause

The root cause is the absence of a maximum line length constant in the HTTP parsing logic. The library's line reading functions would continue accepting and buffering input until a line terminator was encountered, regardless of how much memory had been consumed. Without a defined upper bound like CPPHTTPLIB_MAX_LINE_LENGTH, there was no mechanism to reject or truncate excessively long input lines.

Attack Vector

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

  1. Establishing a connection to a service using vulnerable cpp-httplib
  2. Sending HTTP requests with extremely long header lines (e.g., megabytes of continuous characters without newlines)
  3. Forcing the server to allocate unbounded memory while attempting to parse the malformed request
  4. Repeating the process to exhaust available system memory
c
// Security patch adding maximum line length limit
// Source: https://github.com/yhirose/cpp-httplib/commit/7b752106ac42bd5b907793950d9125a0972c8e8e

 #define CPPHTTPLIB_LISTEN_BACKLOG 5
 #endif
 
+#ifndef CPPHTTPLIB_MAX_LINE_LENGTH
+#define CPPHTTPLIB_MAX_LINE_LENGTH 32768
+#endif
+
 /*
  * Headers
  */

The patch introduces a CPPHTTPLIB_MAX_LINE_LENGTH constant set to 32768 bytes (32KB), providing a configurable upper bound for line lengths during HTTP parsing.

Detection Methods for CVE-2025-53628

Indicators of Compromise

  • Unusual memory consumption spikes in services using cpp-httplib
  • HTTP requests with abnormally large header sizes in access logs
  • Application crashes or out-of-memory errors in cpp-httplib-based services
  • Network traffic containing HTTP requests without standard line terminators over extended content lengths

Detection Strategies

  • Monitor memory utilization patterns for services built with cpp-httplib for sudden increases
  • Implement network-level detection for HTTP requests exceeding reasonable header size thresholds (e.g., >64KB)
  • Review application logs for parsing errors or memory allocation failures related to HTTP request processing
  • Scan dependencies to identify cpp-httplib versions prior to 0.20.1

Monitoring Recommendations

  • Configure alerting for memory exhaustion events on servers running cpp-httplib applications
  • Deploy network intrusion detection rules to flag HTTP traffic with unusually large request headers
  • Implement application-level logging to capture rejected or truncated HTTP requests post-patch
  • Monitor for multiple connection attempts from single sources sending malformed HTTP data

How to Mitigate CVE-2025-53628

Immediate Actions Required

  • Upgrade cpp-httplib to version 0.20.1 or later immediately
  • Audit all applications and dependencies for embedded cpp-httplib usage
  • Deploy network-level protections (WAF, reverse proxy) to limit maximum request header sizes
  • Monitor affected services for signs of exploitation while patching is in progress

Patch Information

The vulnerability is fixed in cpp-httplib version 0.20.1. The security patch adds a configurable maximum line length constant (CPPHTTPLIB_MAX_LINE_LENGTH) with a default value of 32768 bytes (32KB). This ensures that HTTP parsing operations will reject or truncate lines exceeding this threshold, preventing unbounded memory allocation.

For detailed patch information, refer to the GitHub Security Advisory GHSA-j6p8-779x-p5pw and the commit implementing the fix.

Workarounds

  • Deploy a reverse proxy or WAF in front of vulnerable services to enforce maximum header size limits
  • Configure network-level rate limiting to reduce the impact of memory exhaustion attacks
  • Implement application-level memory limits or resource constraints using container orchestration or OS-level controls
  • Consider temporarily disabling affected services if immediate patching is not possible
bash
# Configuration example - Nginx reverse proxy to limit request header size
# Place in front of vulnerable cpp-httplib services

# Limit client request header buffer size
large_client_header_buffers 4 32k;

# Set maximum allowed size of the client request body
client_max_body_size 10m;

# Limit header field size
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
  • TypeBuffer Overflow

  • Vendor/TechCpp Httplib

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/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
  • AvailabilityLow
  • CWE References
  • CWE-770

  • CWE-444
  • Technical References
  • GitHub Security Advisory GHSA-qjmq-h3cc-qv6w
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory GHSA-j6p8-779x-p5pw
  • Related CVEs
  • CVE-2026-29076: Yhirose Cpp-httplib Buffer Overflow Flaw

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

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

  • CVE-2026-22776: cpp-httplib DoS 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