CVE-2025-46728
Homebrew vulnerability analysis and mitigation

Overview

cpp-httplib, a C++11 single-file header-only cross-platform HTTP/HTTPS server and client library, contains a vulnerability tracked as CVE-2025-46728. The vulnerability was discovered and disclosed on May 5, 2025, affecting versions 0.20.0 and earlier. The issue lies in the library's failure to enforce configured size limits on incoming request bodies when Transfer-Encoding: chunked is used or when no Content-Length header is provided (GitHub Advisory).

Technical details

The vulnerability stems from the readcontentchunked function, which continuously reads incoming chunks without limiting the total accumulated size. When processing HTTP chunked transfers, the server fails to enforce size limits during the parsing of request bodies. The issue is particularly critical when handling requests with Transfer-Encoding: chunked or those lacking a Content-Length header. 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, indicating network accessibility with low attack complexity and no required privileges or user interaction (GitHub Advisory, Security Online).

Impact

The vulnerability can lead to severe consequences including Denial of Service (DoS) where the server process consumes excessive memory until it crashes or becomes unresponsive. In multi-tenant systems, this can result in resource exhaustion, potentially impacting other applications by consuming system resources (GitHub Advisory, Security Online).

Mitigation and workarounds

The primary mitigation is to update to the patched version 0.20.1, which enforces limits during parsing and terminates connections immediately if limits are exceeded. For users unable to update immediately, a temporary workaround involves deploying a reverse proxy (such as Nginx or HAProxy) in front of the cpp-httplib application and configuring it to enforce maximum request body size limits (GitHub Advisory).

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-2025-58360CRITICAL9.8
  • JavaJava
  • org.geoserver.web:gs-web-app
NoYesNov 25, 2025
CVE-2025-65085HIGH8.4
  • NixOSNixOS
  • cobalt
NoNoNov 25, 2025
CVE-2025-65084HIGH8.4
  • NixOSNixOS
  • argon
NoNoNov 25, 2025
CVE-2025-59789HIGH7.5
  • HomebrewHomebrew
  • brpc
NoYesDec 01, 2025
CVE-2025-64761HIGH7.5
  • WolfiWolfi
  • openbao
NoYesNov 25, 2025

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