CVE-2021-32715 json
Lenient Parsing of Content-Length Header When Prefixed with Plus Sign
published 2021-07-07 5 y ago modified 2026-10-12 27 d ago also GHSA-f3pg-qwvg-p99c , RUSTSEC-2021-0078 , EUVD-2021-1461
- cvss
- 3.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 66%
- public exploits
- 0
- none known
Summary
hyper is an HTTP library for rust. hyper's HTTP/1 server code had a flaw that incorrectly parses and accepts requests with a `Content-Length` header with a prefixed plus sign, when it should have been rejected as illegal. This combined with an upstream HTTP proxy that doesn't parse such `Content-Length` headers, but forwards them, can result in "request smuggling" or "desync attacks". The flaw exists in all prior versions of hyper prior to 0.14.10, if built with `rustc` v1.5.0 or newer. The vulnerability is patched in hyper version 0.14.10. Two workarounds exist: One may reject requests manually that contain a plus sign prefix in the `Content-Length` header or ensure any upstream proxy handles `Content-Length` headers with a plus sign prefix.
Patch / fix
- crates.io hyper 0.14.10
- hyper hyper 0.14.10
- rust-hyper Debian 14, Debian 13, Debian 12 0.14.19-1
debian advisories DEBIAN-CVE-2021-32715
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-32715 updated cvss 6.5
rust-hyper: Lenient Parsing of Content-Length Header When Prefixed with Plus Sign
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.13% chance of exploitation in the next 30 days, higher than 66% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| OSV | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | hyper | <0.14.10 >=0.0.0-0, <0.14.10 |
0.14.10 |
Affected products
- hyperium hyper
Classification
- Weakness
-
- CWE-444 Inconsistent Interpretation of HTTP Requests
References
-
github.com
/rust-lang/rust/pull/28826/commits/123a83326fb95366e94a3be1a74775df4db97739
web, patch, third-party-advisory
-
github.com
/hyperium/hyper/commit/1fb719e0b61a4f3d911562a436a2ff05fd7cb759
web
-
github.com
/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-32715
advisory
-
github.com
/hyperium/hyper
package
-
rustsec.org
/advisories/RUSTSEC-2021-0078.html
web, advisory
-
crates.io
/crates/hyper
package
Sources
- CVE List CVE-2021-32715
- GitHub Advisory GHSA-f3pg-qwvg-p99c
- NVD CVE-2021-32715
- OSV RUSTSEC-2021-0078
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.