Security mailing lists by PureSourceCode

CVE-2021-21299

HIGH 8.1CVSS 3.1

HTTP Request Smuggling in hyper

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.

Published
11 Feb 2021
Last modified
12 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-444
Also known as
GHSA-6hfq-h8hq-87mfRUSTSEC-2021-0020
Sources
NVDJSONOSV GHSA-6hfq-h8hq-87mfJSONOSV RUSTSEC-2021-0020JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV RustSec CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD hyper hyper
cpe:2.3:a:hyper:hyper:*:*:*:*:*:rust:*:*
>= 0.12.0, < 0.13.10 0.13.10
NVD hyper hyper
cpe:2.3:a:hyper:hyper:*:*:*:*:*:rust:*:*
>= 0.14.0, < 0.14.3 0.14.3
OSV crates.io hyper >= 0.14.0, < 0.14.3 0.14.3
OSV crates.io hyper >= 0.13.0, < 0.13.10 0.13.10
OSV crates.io hyper >= 0.12.0, < 0.12.36 0.12.36
OSV crates.io hyper >= 0.12.0, < 0.12.36; >= 0.13.0-0, < 0.13.10; >= 0.14.0-0, < 0.14.3 0.12.36, 0.13.10, 0.14.3

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 11 Feb 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Feb 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.