Skip to content

CVE-2021-32714 Integer Overflow in Chunked Transfer-Encoding

CriticalCVSS 9.1 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

Description

hyper is an HTTP library for Rust. In versions prior to 0.14.10, hyper's HTTP server and client code had a flaw that could trigger an integer overflow when decoding chunk sizes that are too big. This allows possible data loss, or if combined with an upstream HTTP proxy that allows chunk sizes larger than hyper does, can result in "request smuggling" or "desync attacks." The vulnerability is patched in version 0.14.10. Two possible workarounds exist. One may reject requests manually that contain a Transfer-Encoding header or ensure any upstream proxy rejects Transfer-Encoding chunk sizes greater than what fits in 64-bit unsigned integers.

Upgrade path

7 packages: 5 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/rust-hyper(Ubuntu 20.04) = 0.12.35-1; All versions No fix listed No fix yet
crates.io hyper(crates.io) < 0.14.10; >= 0.0.0-0, < 0.14.10 0.14.10 Fixed
debian/rust-hyper(Debian 12) < 0.14.19-1 0.14.19-1 Fixed
debian/rust-hyper(Debian 13) < 0.14.19-1 0.14.19-1 Fixed
debian/rust-hyper(Debian 14) < 0.14.19-1 0.14.19-1 Fixed
hyper < 0.14.10 0.14.10 Fixed
hyperium hyper = < 0.14.10 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io hyper(crates.io) < 0.14.10 0.14.10
crates.io hyper(crates.io) >= 0.0.0-0, < 0.14.10 0.14.10
debian/rust-hyper(Debian:12) < 0.14.19-1 0.14.19-1
debian/rust-hyper(Debian:13) < 0.14.19-1 0.14.19-1
debian/rust-hyper(Debian:14) < 0.14.19-1 0.14.19-1
hyper < 0.14.10 0.14.10
hyperium hyper = < 0.14.10 No fix listed
ubuntu/rust-hyper(Ubuntu:20.04) All versions No fix listed
ubuntu/rust-hyper(Ubuntu:20.04) = 0.12.35-1 No fix listed

References