{"id":"CVE-2021-32715","published":"2021-07-07T20:05:11Z","modified":"2024-08-03T23:25:31Z","title":"Lenient Parsing of Content-Length Header When Prefixed with Plus Sign","vendor":"hyperium","product":"hyper","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.1,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01126,"percentile":0.65986,"provenance":"source"},"cwes":[{"id":"CWE-444","name":"Inconsistent Interpretation of HTTP Requests"}],"references":[{"url":"https://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rust-lang/rust/pull/28826/commits/123a83326fb95366e94a3be1a74775df4db97739","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":13.2},{"name":"CVSS severity","points":2.17}]},"vendorSlug":"hyperium","affectedVersions":[{"vendor":"hyperium","product":"hyper","versions":["< 0.14.10"]}],"affected":[{"ecosystem":"crates.io","package":"hyper","vulnerableRanges":["<0.14.10",">=0.0.0-0, <0.14.10"],"patched":["0.14.10"],"from":["GHSA-f3pg-qwvg-p99c","RUSTSEC-2021-0078"],"provenance":"source"}],"summary":{"text":"The flaw is in the HTTP/1 server code of hyper, a Rust HTTP library, which incorrectly accepts Content-Length headers prefixed with a plus sign instead of rejecting them as illegal. An attacker can cause request smuggling or desync attacks when this is combined with an upstream HTTP proxy that forwards such headers unchanged, which requires network access, the attacker's request to pass through that proxy, and user interaction, and it affects hyper builds prior to 0.14.10 compiled with rustc v1.5.0 or newer.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:36Z"},"euvd":{"id":"EUVD-2021-1461","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hyperium-hyper-cve-2021-21299","parents":[{"from":"CVE-2021-21299","to":"CVE-2021-32715","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/proto/h1/role.rs"],"commits":["https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02","https://github.com/hyperium/hyper/commit/1fb719e0b61a4f3d911562a436a2ff05fd7cb759"],"basis":"shared function","functions":["Http1Transaction"]},{"kind":"similar","provenance":"machine","score":0.51,"basis":"same product + CWE + description similarity"}]}]}}