Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2020-25574
Rust vulnerability analysis and mitigation

Overview

An integer overflow vulnerability was discovered in the http crate for Rust, affecting versions before 0.1.20. The vulnerability, identified as CVE-2020-25574, was found in the HeaderMap::reserve() function and was reported on November 16, 2019. This security flaw affects the HTTP header handling functionality in Rust applications using the affected versions of the http crate (RustSec Advisory, NVD).

Technical details

The vulnerability stems from an integer overflow in the HeaderMap::reserve() function. The function uses usize::next_power_of_two() to calculate increased capacity, which can silently overflow to 0 in release mode when given a sufficiently large number. If the map is not empty when the overflow occurs, the library invokes self.grow(0) and enters an infinite probing loop. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD, RustSec Advisory).

Impact

The primary impact of this vulnerability is a potential denial of service (DoS) condition. When exploited, it can cause the application to enter an infinite loop, effectively making the service unavailable. The vulnerability affects the availability of the system while not compromising confidentiality or integrity (RustSec Advisory).

Exploitability

The vulnerability can be triggered by an attacker who can control the argument to the reserve() function. The attack requires network access but does not require privileges or user interaction, making it relatively straightforward to exploit (NVD).

Mitigation and workarounds

The vulnerability was fixed in version 0.1.20 of the http crate. Users should upgrade to this version or later to mitigate the risk. The fix addresses the integer overflow issue in the HeaderMap::reserve() function (RustSec Advisory).

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-2026-68537HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
CVE-2026-68523HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
RUSTSEC-2026-0289NONEN/A
  • Rust logoRust
  • pqc_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0287NONEN/A
  • Rust logoRust
  • cosmian_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0286NONEN/A
  • Rust logoRust
  • cryptoki
NoYesSep 16, 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