
CVE catalog
CVE-2025-46728
cpp-httplib: CVE-2025-46728
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.66% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | cpp-httplib | sid | 0.41.0+ds-3 | fixed |
| Debian | cpp-httplib | forky | 0.41.0+ds-3 | fixed |
| Debian | cpp-httplib | trixie | 0.18.7-1+deb13u1 | fixed |
| Debian | cpp-httplib | trixie-security | 0.18.7-1+deb13u1 | fixed |
| Debian | cpp-httplib | bookworm | 0.11.4+ds-1+deb12u1 | vulnerable |
| Ubuntu | cpp-httplib | pro | 0.18.7-1 | vulnerable |
| Ubuntu | cpp-httplib | pro | 0.26.0+ds-2ubuntu2 | vulnerable |
| Ubuntu | cpp-httplib | pro | 0.26.0+ds-2ubuntu3 | vulnerable |
| Ubuntu | cpp-httplib | pro | 0.26.0+ds-2ubuntu3+esm1 | vulnerable |
| Ubuntu | cpp-httplib | 25.10 | 0.18.7-1 | vulnerable |
| Ubuntu | cpp-httplib | 25.10 | 0.18.7-1ubuntu0.25.10.1 | vulnerable |
| Ubuntu | cpp-httplib | 25.10 | 0.18.7-1ubuntu0.25.10.2 | vulnerable |
| Opensuse | cpp-httplib | tumbleweed | 0.20.1-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | cpp-httplib | source | sid | 0.25.0+ds-3 | not yet assigned | Not reported | [1104926] |
| Debian | cpp-httplib | source | forky | 0.25.0+ds-3 | not yet assigned | Not reported | [1104926] |
| Debian | cpp-httplib | source | trixie | 0.18.7-1+deb13u1 | not yet assigned | Not reported | [1104926] |
| Debian | cpp-httplib | source | bookworm | (unfixed) | not yet assigned | Not reported | [1104926] |
| Opensuse | cpp-httplib | rpm | tumbleweed | 0.20.1-1.1 | Not reported | OPENSUSE-SU-2025:15084-1 | Not reported |
Notes
[bookworm] cpp-httplib: Minor issue, DoS
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libcpp-httplib0.11]Affected
Source package: [cpp-httplib]
Details (2)
0.11.4+ds-1+deb12u1· amd64 · bookwormAffected
dsa · cpp-httplib · debian · bookworm; dsa · cpp-httplib · debian · 12
0.11.4+ds-1+deb12u1· arm64 · bookwormAffected
dsa · cpp-httplib · debian · bookworm; dsa · cpp-httplib · debian · 12
- [libcpp-httplib-dev]Affected
Source package: [cpp-httplib]
Details (2)
0.11.4+ds-1+deb12u1· amd64 · bookwormAffected
dsa · cpp-httplib · debian · bookworm; dsa · cpp-httplib · debian · 12
0.11.4+ds-1+deb12u1· arm64 · bookwormAffected
dsa · cpp-httplib · debian · bookworm; dsa · cpp-httplib · debian · 12
[openSUSE Tumbleweed]
- [cpp-httplib-devel]Unknown
Source package: [cpp-httplib]
Details (1)
0.49.0-1.2· x86_64 · tumbleweedUnknown · Fixed:
0.20.1-1.1Version impact unknown
dsa · cpp-httplib · opensuse · tumbleweed
- [libcpp-httplib0_49]Unknown
Source package: [cpp-httplib]
Details (1)
0.49.0-1.2· x86_64 · tumbleweedUnknown · Fixed:
0.20.1-1.1Version impact unknown
dsa · cpp-httplib · opensuse · tumbleweed
[Debian 13 (Trixie)]
- [libcpp-httplib0.18]Fixed
Source package: [cpp-httplib]
Details (4)
0.18.7-1+deb13u1· amd64 · trixieFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
0.18.7-1+deb13u1· arm64 · trixieFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
0.18.7-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
0.18.7-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
- [libcpp-httplib0.41]Fixed
Source package: [cpp-httplib]
Details (2)
0.41.0+ds-3~bpo13+1· amd64 · trixie-backportsFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
0.41.0+ds-3~bpo13+1· arm64 · trixie-backportsFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
- [libcpp-httplib-dev]Fixed
Source package: [cpp-httplib]
Details (6)
0.18.7-1+deb13u1· amd64 · trixieFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
0.18.7-1+deb13u1· arm64 · trixieFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
0.41.0+ds-3~bpo13+1· amd64 · trixie-backportsFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
0.41.0+ds-3~bpo13+1· arm64 · trixie-backportsFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
0.18.7-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
0.18.7-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
0.18.7-1+deb13u1dsa · cpp-httplib · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2025_15084-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-46728]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-46728]
- [https://osv.dev/vulnerability/openSUSE-SU-2025:15084-1]
- [https://security-tracker.debian.org/tracker/CVE-2025-46728]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-46728.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]