CVE-2021-32715 Lenient Parsing of Content-Length Header When Prefixed with Plus Sign
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
7 packages: 5 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rust-hyper(Ubuntu 20.04) | = 0.12.35-1; All versions | No fix listed | No fix yet |
| crates.io hyper(crates.io) | < 0.14.10; >= 0.0.0-0, < 0.14.10 | 0.14.10 | Fixed |
| debian/rust-hyper(Debian 12) | < 0.14.19-1 | 0.14.19-1 | Fixed |
| debian/rust-hyper(Debian 13) | < 0.14.19-1 | 0.14.19-1 | Fixed |
| debian/rust-hyper(Debian 14) | < 0.14.19-1 | 0.14.19-1 | Fixed |
| hyper | < 0.14.10 | 0.14.10 | Fixed |
| hyperium hyper | = < 0.14.10 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io hyper(crates.io) | < 0.14.10 | 0.14.10 |
| crates.io hyper(crates.io) | >= 0.0.0-0, < 0.14.10 | 0.14.10 |
| debian/rust-hyper(Debian:12) | < 0.14.19-1 | 0.14.19-1 |
| debian/rust-hyper(Debian:13) | < 0.14.19-1 | 0.14.19-1 |
| debian/rust-hyper(Debian:14) | < 0.14.19-1 | 0.14.19-1 |
| hyper | < 0.14.10 | 0.14.10 |
| hyperium hyper | = < 0.14.10 | No fix listed |
| ubuntu/rust-hyper(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/rust-hyper(Ubuntu:20.04) | = 0.12.35-1 | No fix listed |
References
- github.com exploit issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- rustsec.org issue-tracking vendor-advisory
- github.com patch
- github.com
- github.com product
- crates.io product
- Debian Security Tracker CVE-2021-32715 vendor-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking