8.1
HIGH CVSS 3.1
CVE-2021-21299
Hyper HTTP Library Transfer Encoding Header Smuggling Vulnerability
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.

INFO

Published Date :

Feb. 11, 2021, 6:15 p.m.

Last Modified :

Nov. 21, 2024, 5:47 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2021-21299 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Hyper hyper
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 HIGH [email protected]
Public PoC/Exploit Available at Github

CVE-2021-21299 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-21299 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-21299 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Python Shell Dockerfile HTML Go JavaScript Ruby PHP VCL ASP.NET

Updated: 3 months, 1 week ago
25 stars 4 fork 4 watcher
Born at : March 23, 2022, 11:55 a.m. This repo has been linked 13 different CVEs too.

None

Updated: 4 weeks, 1 day ago
34 stars 2 fork 2 watcher
Born at : Jan. 5, 2021, 11:56 a.m. This repo has been linked 163 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-21299 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-21299 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://crates.io/crates/hyper
    Added Reference https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02
    Added Reference https://github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf
    Added Reference https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn
    Added Reference https://rustsec.org/advisories/RUSTSEC-2021-0020.html
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Feb. 19, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:P/A:P)
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://crates.io/crates/hyper No Types Assigned https://crates.io/crates/hyper Product, Third Party Advisory
    Changed Reference Type https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02 No Types Assigned https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02 Patch, Third Party Advisory
    Changed Reference Type https://github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf No Types Assigned https://github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf Third Party Advisory
    Changed Reference Type https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn No Types Assigned https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn Third Party Advisory
    Changed Reference Type https://rustsec.org/advisories/RUSTSEC-2021-0020.html No Types Assigned https://rustsec.org/advisories/RUSTSEC-2021-0020.html Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:hyper:hyper:*:*:*:*:*:rust:*:* versions from (including) 0.12.0 up to (excluding) 0.13.10 *cpe:2.3:a:hyper:hyper:*:*:*:*:*:rust:*:* versions from (including) 0.14.0 up to (excluding) 0.14.3
  • CVE Modified by [email protected]

    Feb. 12, 2021

    Action Type Old Value New Value
    Added Reference https://rustsec.org/advisories/RUSTSEC-2021-0020.html [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 11, 2021

    Action Type Old Value New Value
    Changed 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. 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.
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 8.1
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 6.8
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.58 }} -0.89%

score

0.66233

percentile