cve.bz

CVE-2021-21299 hyper hyper: HTTP Request Smuggling

8.1 highEPSS 4.8%Fix available

High (8.1) in hyper hyper. EPSS 4.8% estimated probability of exploitation activity in the next 30 days. Fixed in hyper 0.12.36, 0.13.10, 0.14.3.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.8% (unchanged from 4.8% a week ago; 4.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-444 Inconsistent Interpretation of HTTP Requests (HTTP Request Smuggling)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21299 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21299?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21299?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21299 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
hyper:hyperfrom 0.12.0 before 0.13.10
hyper:hyperfrom 0.14.0 before 0.14.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6hfq-h8hq-87mfcrates.iohyper>=0.14.0 <0.14.30.14.3
GHSA-6hfq-h8hq-87mfcrates.iohyper>=0.13.0 <0.13.100.13.10
GHSA-6hfq-h8hq-87mfcrates.iohyper>=0.12.0 <0.12.360.12.36
RUSTSEC-2021-0020crates.iohyper>=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

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rust-hyper0.14.19-1DEBIAN-CVE-2021-21299
Ubuntu20.04:LTS, 24.04:LTS, 25.10 and 2 morerust-hyperno fix listedUBUNTU-CVE-2021-21299
openSUSETumbleweedspotifyd0.3.3-9.1openSUSE-SU-2024:12274-1
openSUSETumbleweedtuigreet0.7.1-6.1openSUSE-SU-2024:12238-1
openSUSETumbleweedwayshot1.1.9-1.1openSUSE-SU-2024:12239-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-33 HTTP Request Smuggling Likelihood: Medium · Severity: High
  • CAPEC-273 HTTP Response Smuggling Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON