Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2025-46728
cpp-httplib project cpp-httplib

Score7.5 High
CVSS 3.1
Exploit probability (EPSS)0.99%
within the next 30 days
CategoryDenial of service
Published6 May 2025
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, without any user interaction.

A successful attack has high impact: crashing the system or making it unavailable.

Weakness type: Uncontrolled resource consumption.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

cpp-httplib is a C++ header-only HTTP/HTTPS server and client library. Prior to version 0.20.1, the library fails to enforce configured size limits on incoming request bodies when `Transfer-Encoding: chunked` is used or when no `Content-Length` header is provided. A remote attacker can send a chunked request without the terminating zero-length chunk, causing uncontrolled memory allocation on the server. This leads to potential exhaustion of system memory and results in a server crash or unresponsiveness. Version 0.20.1 fixes the issue by enforcing limits during parsing. If the limit is exceeded at any point during reading, the connection is terminated immediately. A short-term workaround through a Reverse Proxy is available. If updating the library immediately is not feasible, deploy a reverse proxy (e.g., Nginx, HAProxy) in front of the `cpp-httplib` application. Configure the proxy to enforce maximum request body size limits, thereby stopping excessively large requests before they reach the vulnerable library code.

CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-400 – Uncontrolled resource consumption

Affected products

VendorProductVersions
cpp-httplib projectcpp-httplib<0.20.1

Sources

Latest in the same category

  • CVE-2026-138433 Medium 5.5
    A vulnerability has been found in Zylon PrivateGPT up to 0.6.2. This impacts the function retrieve_relevant of the file private_gpt/server/chunks/chunks_service.py of the component Chunks API. Such manipulation of the…
    Denial of service · 30 November 2026
  • CVE-2026-138432 Medium 5.5
    A flaw has been found in Zylon PrivateGPT up to 0.6.2. This affects the function ingest_bin_data of the file private_gpt/server/ingest/ingest_service.py of the component Ingest API. This manipulation of the argument…
    Denial of service · 30 November 2026
  • CVE-2026-133641 Not scored
    Asymmetric resource consumption (amplification) vulnerability in Apache Struts. When a request parameter is bound to an arbitrary-precision decimal (java.math.BigDecimal) property that is then rendered through the…
    Denial of service · 30 November 2026
  • CVE-2026-133640 Not scored
    Asymmetric resource consumption (amplification) vulnerability in Apache Struts. The fix released for CVE-2026-104712 in Struts 6.12.0 and 7.4.0 does not cover all affected values. When a request parameter is bound to…
    Denial of service · 30 November 2026
  • CVE-2026-127170 High 8.7
    The affected products contain a memory leak in the packet processing of the network stack. An unauthenticated remote attacker can send specially crafted UDP packets to exhaust available packet buffers. Successful…
    Denial of service · 30 November 2026
  • CVE-2026-127169 High 8.7
    The affected products do not properly handle certain return values generated during TCP connection processing. An unauthenticated remote attacker can send specially crafted TCP connection requests that cause the…
    Denial of service · 30 November 2026