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.
History

Fri, 27 Jun 2025 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 26 Jun 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 26 Jun 2025 14:45:00 +0000

Type Values Removed Values Added
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.
Title cpp-httplib has unlimited number of http header fields, which causes memory leak
Weaknesses CWE-400
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2025-06-26T14:31:52.092Z

Updated: 2025-06-26T14:46:31.045Z

Reserved: 2025-06-20T17:42:25.709Z

Link: CVE-2025-52887

cve-icon Vulnrichment

Updated: 2025-06-26T14:46:20.189Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-06-26T15:15:23.350

Modified: 2025-06-26T18:57:43.670

Link: CVE-2025-52887

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-06-26T14:31:52Z

Links: CVE-2025-52887 - Bugzilla