CVE-2025-52887 Details
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.
A denial-of-service vulnerability has been identified in cpp-httplib version 0.21.0. The issue arises because the library does not limit the number of HTTP header fields that can be sent. This lack of restriction allows for an unlimited number of headers to be transmitted, leading to excessive memory consumption. The memory allocated for these headers is not released when the connection is closed, causing potential exhaustion of system resources. As a result, the server may crash or become unresponsive. This vulnerability has been patched in version 0.22.0.
Users can upgrade to cpp-httplib version 0.22.0, which includes a patch for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 26, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| yhirose cpp-httplib | 0.21.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 6, 2025 | Initial Analysis | [email protected] |
| Jun 26, 2025 | New CVE Received | [email protected] |