Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-46728

published high CVSS 3.1 · 7.5

cpp-httplib has Unbounded Memory Allocation in Chunked/No-Length Requests

Published
06 May 2025, 00:45:25 UTC
Updated
06 May 2025, 02:43:44 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

2

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.

Affected vendor and product assertions
VendorProductVersion statusSource
yhirose cpp-httplib < 0.20.1 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-400 CWE-400: Uncontrolled Resource Consumption (GitHub_M · cna)

References

2

Provider assertions

2

GitHub_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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected