CVE-2025-52887: yhirose cpp-httplib · Uncontrolled Resource Consumption
Affects yhirose cpp-httplibSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 26 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubyhirose/cpp-httplibpkg:github/yhirose/cpp-httplibOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate this vulnerability, organizations should immediately upgrade to cpp-httplib version 0.22.0 or later, which contains the official patch. If upgrading is not immediately feasible, implement network-level protections such as rate limiting and filtering to restrict the number of HTTP headers accepted per request. Deploy Web Application Firewalls (WAFs) or Intrusion Prevention Systems (IPS) configured to detect and block anomalous HTTP header patterns indicative of resource exhaustion attempts. Additionally, monitor server memory usage and connection metrics closely to identify unusual spikes that may signal exploitation attempts. For custom implementations using cpp-httplib, developers should implement internal limits on the number of headers processed and ensure proper memory management on connection termination. Regularly audit and update third-party libraries to incorporate security patches promptly. Finally, incorporate this vulnerability into incident response plans to ensure rapid detection and remediation if exploitation is suspected.
Description
cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. In version 0.21.0, when many http headers 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. Version 0.22.0 contains a patch for the issue.