CVEfocus › CVE database › CVE-2021-32715

CVE-2021-32715Lenient Parsing of Content-Length Header When Prefixed with Plus Sign

CVSS 3.1 LowEPSS 1.1% (higher than 66% of CVEs)Published 2021-07-07Updated 2024-08-03Assigner: GitHub_M

hyper is an HTTP library for rust. hyper's HTTP/1 server code had a flaw that incorrectly parses and accepts requests with a `Content-Length` header with a prefixed plus sign, when it should have been rejected as illegal. This combined with an upstream HTTP proxy that doesn't parse such `Content-Length` headers, but forwards them, can result in "request smuggling" or "desync attacks". The flaw exists in all prior versions of hyper prior to 0.14.10, if built with `rustc` v1.5.0 or newer. The vulnerability is patched in hyper version 0.14.10. Two workarounds exist: One may reject requests manually that contain a plus sign prefix in the `Content-Length` header or ensure any upstream proxy handles `Content-Length` headers with a plus sign prefix.

CWE-444

What to do

Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04rust-hyperNot affected
vulnerable_code_not_present
Ubuntu 25.10rust-hyperNot affected
vulnerable_code_not_present
Ubuntu 24.04rust-hyperNot affected
vulnerable_code_not_present
Ubuntu 20.04rust-hyperFix pendingUBUNTU-CVE-2021-32715
Debian 14rust-hyperFixed0.14.19-1DEBIAN-CVE-2021-32715
Debian 13rust-hyperFixed0.14.19-1DEBIAN-CVE-2021-32715
Debian 12rust-hyperFixed0.14.19-1DEBIAN-CVE-2021-32715
crates.io libraryhyperFixed0.14.10GHSA-f3pg-qwvg-p99c

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.