Advisory

RUSTSEC-2021-0020

Also known as: CVE-2021-21299, GHSA-6hfq-h8hq-87mf

Summary

Multiple Transfer-Encoding headers misinterprets request payload

Details

hyper's 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".

Severity

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

Dates

Published
2021-02-05 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

hyper

crates.io · All systems

Affected

  • introduced 0.12.0, fixed 0.12.36, introduced 0.13.0-0, fixed 0.13.10, introduced 0.14.0-0, fixed 0.14.3 (semver)

Fixed versions

0.12.36, 0.13.10, 0.14.3

Fix

  • Fixed version 0.12.36
    cargo update -p hyper --precise 0.12.36
  • Fixed version 0.13.10
    cargo update -p hyper --precise 0.13.10
  • Fixed version 0.14.3
    cargo update -p hyper --precise 0.14.3

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