Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.5

CVE-2021-29932: Rust's parse_duration Crate Can Be Crashed with Large Input

CVE-2021-29932 · published 5 years ago
Summary

The Rust parse_duration crate can be exploited to consume excessive CPU and memory, causing a denial-of-service. This affects developers using the crate in their projects. To mitigate this, update to a newer version of the crate, or patch the code to handle large input values.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
rust zeta12ti parse_duration <= 2.1.1
– parse_duration_project parse_duration <= 2021-03-18
cpe:2.3:a:parse_duration_project:parse_duration:*:*:*:*:*:rust:*:*
Original advisory text
An issue was discovered in the parse_duration crate through 2021-03-18 for Rust. It allows attackers to cause a denial of service (CPU and memory consumption) via a duration string with a large exp...
An issue was discovered in the parse_duration crate through 2021-03-18 for Rust. It allows attackers to cause a denial of service (CPU and memory consumption) via a duration string with a large exponent.
Fix within
Internet-facing 14 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker partial control (estimated)
Severity
7.5 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-400Uncontrolled Resource Consumption
CWE-770Allocation of Resources Without Limits
Timeline
Published1 Apr 2021
Updated11 Nov 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta