Vulnerability DatabaseRUSTSEC-2021-0079

RUSTSEC-2021-0079
Rust vulnerability analysis and mitigation

Overview

hyper, an HTTP library for Rust, was found to contain a vulnerability (CVE-2021-32714/RUSTSEC-2021-0079) in versions prior to 0.14.10. The vulnerability involves an integer overflow issue in the HTTP server and client code when decoding chunk sizes that are too large. This security flaw was discovered by Mattias Grenfeldt and Asta Olofsson and was publicly disclosed on July 7, 2021 (GitHub Advisory).

Technical details

The vulnerability occurs when processing HTTP/1.1 chunked transfer-encoding requests or responses. The flaw lies in hyper's handling of chunk sizes, where it only reads the rightmost 64-bit integer as the chunk size. For example, in a chunk size of 'f0000000000000003', hyper would only read it as '3', potentially leading to incorrect data processing (GitHub Advisory).

Impact

The vulnerability can result in two primary impacts: data loss due to improper truncation of body content, and potential request smuggling or desync attacks when used with an upstream proxy that handles chunk sizes differently. The issue specifically affects HTTP/1.1 communications, as HTTP/2 does not use chunked encoding and is therefore not vulnerable (GitHub Advisory).

Exploitability

The vulnerability is exploitable when using HTTP/1.1 with either hyper as a server or client, and when processing requests or responses with chunk sizes greater than 18 exabytes. The risk of request smuggling attacks is present specifically when using an upstream proxy that allows chunk sizes larger than 64-bit (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.14.10 of hyper. For those unable to upgrade immediately, two workarounds are available: 1) reject requests manually that contain a Transfer-Encoding header, or 2) ensure any upstream proxy rejects Transfer-Encoding chunk sizes greater than what fits in 64-bit unsigned integers (GitHub Advisory, Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-5x78-73v4-xg6wHIGH8.7
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
GHSA-fx4f-mhw4-qm7jMEDIUM6.9
  • Rust logoRust
  • vibeio-http
NoYesAug 24, 2026
GHSA-3gjw-f78c-vvpwMEDIUM6.9
  • Rust logoRust
  • tokio-postgres
NoYesAug 24, 2026
GHSA-rgqc-3x5p-6gwgMEDIUM6.9
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
RUSTSEC-2026-0267NONEN/A
  • Rust logoRust
  • stable-vec
NoYesAug 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management