CVE-2025-46728
published high CVSS 3.1 · 7.5cpp-httplib has Unbounded Memory Allocation in Chunked/No-Length Requests
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yhirose | — | cpp-httplib< 0.20.1 | Affected | Not stated | GitHub_M |
| Debian | trixie | cpp-httplib | Advisory build | 0.18.7-1+deb13u1 | DSA-6228-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-develaarch64 | Advisory build | 0.20.1-1.1 | OPENSUSE-SU-2025:15084-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-develppc64le | Advisory build | 0.20.1-1.1 | OPENSUSE-SU-2025:15084-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-devels390x | Advisory build | 0.20.1-1.1 | OPENSUSE-SU-2025:15084-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-develx86_64 | Advisory build | 0.20.1-1.1 | OPENSUSE-SU-2025:15084-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_20aarch64 | Advisory build | 0.20.1-1.1 | OPENSUSE-SU-2025:15084-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_20ppc64le | Advisory build | 0.20.1-1.1 | OPENSUSE-SU-2025:15084-1 |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_20s390x | Advisory build | 0.20.1-1.1 | OPENSUSE-SU-2025:15084-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_20x86_64 | Advisory build | 0.20.1-1.1 | OPENSUSE-SU-2025:15084-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yhirose | cpp-httplib | < 0.20.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-400 CWE-400: Uncontrolled Resource Consumption
References
2Provider assertions
2GitHub_M · cna
cpp-httplib has Unbounded Memory Allocation in Chunked/No-Length Requests
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 180cb5ee4c3c8e65a6906bf4cfd0ab36cad13d0c1f81de39b558f41330d5923a
- Ingested
- 23 Sep 2026, 08:49:40 UTC
- Source record
- Official CVE record