CVE-2025-52887
Homebrew vulnerability analysis and mitigation

Overview

CVE-2025-52887 affects cpp-httplib, a C++11 single-file header-only cross platform HTTP/HTTPS library. The vulnerability was discovered in version 0.21.0 and disclosed on June 25, 2025. The issue occurs when multiple HTTP header fields are passed in, as the library does not limit the number of headers, and the memory associated with the headers is not released when the connection is disconnected (GitHub Advisory).

Technical details

The vulnerability exists in the readheaders function which only limits the size of each header but does not limit the total length of all headers or the number of headers. An attacker can maintain a connection and send an unlimited amount of header fields without sending consecutive \r\n\r\n, forcing unlimited memory allocation to the unorderedmultimap type headers. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The issue is classified as CWE-400 (Uncontrolled Resource Consumption) (GitHub Advisory).

Impact

The vulnerability can lead to Denial of Service (DoS) where the server process will consume excessive memory until it crashes or becomes unresponsive. On multi-tenant systems, this can impact other applications by consuming system resources. The vulnerability affects the server before request routing is completed and does not require authentication (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.22.0 of cpp-httplib. The fix implements a header count limit to prevent unlimited memory allocation. Users are advised to upgrade to version 0.22.0 or later to address this security issue (GitHub Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21679CRITICAL9.8
  • HomebrewHomebrew
  • iccdev
NoYesJan 07, 2026
CVE-2026-21504HIGH7.8
  • HomebrewHomebrew
  • iccdev
NoYesJan 07, 2026
CVE-2026-21680HIGH7.5
  • HomebrewHomebrew
  • iccdev
NoYesJan 07, 2026
CVE-2026-21503MEDIUM5.5
  • HomebrewHomebrew
  • iccdev
NoYesJan 07, 2026
CVE-2026-21502MEDIUM5.5
  • HomebrewHomebrew
  • iccdev
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management