CVE-2021-29932 Uncontrolled Resource Consumption in parse_duration

High 7.5 Published Updated

Attackers can cause denial of service via CPU and memory exhaustion by providing a duration string with a large exponent to the parse_duration crate.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-29932?

CVE-2021-29932 is a high-severity denial of service vulnerability in n/a, published on 1 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-770

Which versions are affected by CVE-2021-29932?

3 open source packages ship an affected version, including parse_duration. It affects 1 product.

PackageAffectedFixed in
parse_duration crates.ioAll versions to 2.1.1None
parse_duration crates.ioAll versions to 2.1.1None
parse_duration crates.ioFrom 0.0.0-0None

Products include Parse Duration Project Parse Duration.

How do I fix CVE-2021-29932?

No fix has been published for CVE-2021-29932 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-29932 being exploited?

There is no known exploitation of CVE-2021-29932 in the wild and no public exploit code.

Sources

Also known as CAN-2021-1000007, GHSA-qpgv-g792-wh6x, RUSTSEC-2021-0041.

Is CVE-2021-29932 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free