{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-52887","id":"CVE-2025-52887","title":"cpp-httplib has unlimited number of http header fields, which causes memory leak","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. ","descriptionLong":"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.","published":"2025-06-26T14:31:52.092Z","updated":"2026-10-28T11:02:03.127320787Z","reserved":"2025-06-20T17:42:25.709Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["yhirose cpp-httplib"],"affectedProducts":[{"vendor":"yhirose","product":"cpp-httplib","defaultStatus":null,"versions":[{"version":"= 0.21.0","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-400"],"aliases":["GHSA-xjhg-gf59-p92h"],"references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-xjhg-gf59-p92h","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory"]},{"url":"https://github.com/yhirose/cpp-httplib/commit/28dcf379e82a2cdb544d812696a7fd46067eb7f9","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/52xxx/CVE-2025-52887.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-52887","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.0049,"epssPercentile":0.42854,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-52887","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-52887","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-52887","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-52887","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}