Advisory

RUSTSEC-2021-0079

Also known as: CVE-2021-32714, GHSA-5h46-h7hh-c6x9

Summary

Integer overflow in hyper's parsing of the Transfer-Encoding header leads to data loss

Details

When decoding chunk sizes that are too large, hyper's code would encounter an integer overflow. Depending on the situation,
this could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.

To be vulnerable, you must be using hyper for any HTTP/1 purpose, including as a client or server, and consumers must send
requests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible,
any upstream proxies must accept a chunk size greater than 64 bits.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Dates

Published
2021-07-07 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

hyper

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.14.10 (semver)

Fixed versions

0.14.10

Fix

  • Fixed version 0.14.10
    cargo update -p hyper --precise 0.14.10

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences