CVE-2021-21299
Multiple Transfer-Encoding headers misinterprets request payload
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 4.789% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 4.8 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:55:41.735Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:55:41.735Z | CVE Program |
| epss | verified | 2026-11-19T16:04:29.367Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:40.368Z | OSV |
| affected | verified | 2026-11-19T12:55:41.735Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:41.735Z | CVE Program |
Affected versions and configuration
hyperium hyper; default status: unknown: < 0.13.10 [affected; scheme: unspecified]; >= 0.14.0, < 0.14.3 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "hyperium",
"product": "hyper",
"versions": [
{
"status": "affected",
"version": "< 0.13.10"
},
{
"status": "affected",
"version": ">= 0.14.0, < 0.14.3"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0020.html",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://crates.io/crates/hyper",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T18:09:15.660Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-6hfq-h8hq-87mf",
"aliases": [
"CVE-2021-21299",
"RUSTSEC-2021-0020"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.14.0"
},
{
"fixed": "0.14.3"
}
]
}
],
"package": {
"name": "hyper",
"purl": "pkg:cargo/hyper",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-6hfq-h8hq-87mf/GHSA-6hfq-h8hq-87mf.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.13.0"
},
{
"fixed": "0.13.10"
}
]
}
],
"package": {
"name": "hyper",
"purl": "pkg:cargo/hyper",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-6hfq-h8hq-87mf/GHSA-6hfq-h8hq-87mf.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.12.0"
},
{
"fixed": "0.12.36"
}
]
}
],
"package": {
"name": "hyper",
"purl": "pkg:cargo/hyper",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-6hfq-h8hq-87mf/GHSA-6hfq-h8hq-87mf.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21299",
"type": "ADVISORY"
},
{
"url": "https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02",
"type": "WEB"
},
{
"url": "https://github.com/hyperium/hyper",
"type": "PACKAGE"
},
{
"url": "https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn",
"type": "WEB"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0020.html",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-444"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2021-08-18T21:07:17Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "RUSTSEC-2021-0020",
"aliases": [
"CVE-2021-21299",
"GHSA-6hfq-h8hq-87mf"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.12.0"
},
{
"fixed": "0.12.36"
},
{
"introduced": "0.13.0-0"
},
{
"fixed": "0.13.10"
},
{
"introduced": "0.14.0-0"
},
{
"fixed": "0.14.3"
}
]
}
],
"package": {
"name": "hyper",
"purl": "pkg:cargo/hyper",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"cvss": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0020.json",
"categories": [
"format-injection"
],
"informational": null
},
"ecosystem_specific": {
"affects": {
"os": [],
"arch": [],
"functions": []
},
"affected_functions": null
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://crates.io/crates/hyper",
"type": "PACKAGE"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0020.html",
"type": "ADVISORY"
},
{
"url": "https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"license": "CC0-1.0"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | crates.io / package | hyper | Not a distribution channel | 0.14.3 | Official record |
| ecosystem-boundary | crates.io / package | hyper | Not a distribution channel | 0.13.10 | Official record |
| ecosystem-boundary | crates.io / package | hyper | Not a distribution channel | 0.12.36 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:40.368ZArchived source JSON
Source publication: 2021-08-25T20:56:18.000Z
Source modification: 2026-07-08T06:28:31.977ZDocument fingerprint
eb50c5db4228c1e7c6faff8e8e38d70d99e26c2d7628069d51fe6d1850d01814 - OSVConsulted: 2026-11-19T12:52:40.368ZArchived source JSON
Source publication: 2021-02-05T12:00:00.000Z
Source modification: 2026-10-12T18:00:04.410ZDocument fingerprint
eb50c5db4228c1e7c6faff8e8e38d70d99e26c2d7628069d51fe6d1850d01814 - CVE ProgramConsulted: 2026-11-19T12:55:41.735ZArchived source JSON
Source publication: 2021-02-11T18:00:18.000Z
Source modification: 2024-08-03T18:09:15.660ZDocument fingerprint
faa4341727a7645a077b08b8f0526f3602ac4db542ebd3d453c62f04ca652f35 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:29.367ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
6edec3ff5408c9332bb5cad007615e6981ab6e76b387b737f9030d5936c5b5e2
Official status history
- UNKNOWN → PUBLISHED · · evidence