Memory Exhaustion Vulnerability in cpp-httplib Library by Yhirose
CVE-2025-52887
What is CVE-2025-52887?
The cpp-httplib library, a popular single-file header-only C++ HTTP/HTTPS library, is susceptible to a memory exhaustion vulnerability in version 0.21.0. When numerous HTTP header fields are introduced, the library fails to impose a limit on the number of headers. As a result, when the connection is terminated, the memory allocated for these headers remains unreleased. This oversight can lead to significant system memory depletion, potentially causing the server to become unresponsive or crash entirely. A patch addressing this vulnerability is included in version 0.22.0.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
cpp-httplib = 0.21.0
References
CVSS V3.1
Timeline
Vulnerability published
Vulnerability Reserved
