CVE-2021-32715
MEDIUM 5.3CVSS 3.1Lenient Parsing of Content-Length Header When Prefixed with Plus Sign
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.
- Published
- 7 Jul 2021
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-444
- Also known as
- GHSA-f3pg-qwvg-p99cRUSTSEC-2021-0078
- Sources
- NVDJSONOSV GHSA-f3pg-qwvg-p99cJSONOSV RUSTSEC-2021-0078JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | RustSec | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hyper | hypercpe:2.3:a:hyper:hyper:*:*:*:*:*:rust:*:* |
< 0.14.10 | 0.14.10 |
| OSV | crates.io | hyper | < 0.14.10 | 0.14.10 |
| OSV | crates.io | hyper | >= 0.0.0-0, < 0.14.10 | 0.14.10 |
References
- https://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c · Exploit, Third Party Advisory, WEB
- https://github.com/rust-lang/rust/pull/28826/commits/123a83326fb95366e94a3be1a74775df4db97739 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-32715 · ADVISORY
- https://github.com/hyperium/hyper/commit/1fb719e0b61a4f3d911562a436a2ff05fd7cb759 · WEB
- https://github.com/hyperium/hyper · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2021-0078.html · WEB, ADVISORY
- https://crates.io/crates/hyper · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 7 Jul 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Jul 2021)