Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. hyper
  4. ›
  5. CVE-2021-21299

CVE-2021-21299: HTTP Request Smuggling in hyper

August 25, 2021

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”.

References

  • github.com/advisories/GHSA-6hfq-h8hq-87mf
  • github.com/hyperium/hyper
  • github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02
  • github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf
  • nvd.nist.gov/vuln/detail/CVE-2021-21299
  • portswigger.net/research/http-desync-attacks-request-smuggling-reborn
  • rustsec.org/advisories/RUSTSEC-2021-0020.html

Code Behaviors & Features

Detect and mitigate CVE-2021-21299 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.12.0 before 0.12.36, all versions starting from 0.13.0 before 0.13.10, all versions starting from 0.14.0 before 0.14.3

Fixed versions

  • 0.14.3
  • 0.13.10
  • 0.12.36

Solution

Upgrade to versions 0.12.36, 0.13.10, 0.14.3 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

cargo/hyper/CVE-2021-21299.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:55 +0000.