CVE-2021-21299 Details
Description
hyper is an open-source HTTP library for Rust (crates.io). In hyper from version 0.12.0 and before versions 0.13.10 and 0.14.3 there is a vulnerability that can enable a request smuggling attack. The HTTP server code had a flaw that incorrectly understands some requests with multiple transfer-encoding headers to have a chunked payload, when it should have been rejected as illegal. This combined with an upstream HTTP proxy that understands the request payload boundary differently can result in "request smuggling" or "desync attacks". To determine if vulnerable, all these things must be true: 1) Using hyper as an HTTP server (the client is not affected), 2) Using HTTP/1.1 (HTTP/2 does not use transfer-encoding), 3) Using a vulnerable HTTP proxy upstream to hyper. If an upstream proxy correctly rejects the illegal transfer-encoding headers, the desync attack cannot succeed. If there is no proxy upstream of hyper, hyper cannot start the desync attack, as the client will repair the headers before forwarding. This is fixed in versions 0.14.3 and 0.13.10. As a workaround one can take the following options: 1) Reject requests that contain a `transfer-encoding` header, 2) Ensure any upstream proxy handles `transfer-encoding` correctly.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://crates.io/crates/hyper | CVE | ProductThird Party Advisory |
| https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02 | CVE | PatchThird Party Advisory |
| https://github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf | CVE | Third Party Advisory |
| https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn | CVE | Third Party Advisory |
| https://rustsec.org/advisories/RUSTSEC-2021-0020.html | CVE | Third Party Advisory |
| https://crates.io/crates/hyper | [email protected] | ProductThird Party Advisory |
| https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02 | [email protected] | PatchThird Party Advisory |
| https://github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf | [email protected] | Third Party Advisory |
| https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn | [email protected] | Third Party Advisory |
| https://rustsec.org/advisories/RUSTSEC-2021-0020.html | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-444 | Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| hyper hyper | >= 0.12.0, < 0.13.10 >= 0.14.0, < 0.14.3 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Feb 19, 2021 | Initial Analysis | [email protected] |
| Feb 12, 2021 | CVE Modified | [email protected] |
| Feb 11, 2021 | CVE Modified | [email protected] |