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

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

CVE-2025-65807HIGH8.4
  • RustRust
  • sd
NoNoDec 10, 2025
CVE-2025-66627HIGH7.8
  • RustRust
  • typst
NoYesDec 09, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

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