Advisory

RUSTSEC-2021-0078

Also known as: CVE-2021-32715, GHSA-f3pg-qwvg-p99c

Summary

Lenient hyper header parsing of Content-Length could allow request smuggling

Details

hyper's HTTP header parser accepted, according to RFC 7230, illegal contents inside Content-Length headers.
Due to this, upstream HTTP proxies that ignore the header may still forward them along if it chooses to ignore the error.

To be vulnerable, hyper must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header's contents
but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerability is unlikely.

Severity

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

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