Security mailing lists by PureSourceCode

CVE-2021-29932

HIGH 7.5CVSS 3.1

Uncontrolled Resource Consumption in parse_duration

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.

Published
1 Apr 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-400CWE-770
Also known as
CAN-2021-1000007GHSA-qpgv-g792-wh6xRUSTSEC-2021-0041
Sources
NVDJSONOSV GHSA-qpgv-g792-wh6xJSONOSV RUSTSEC-2021-0041JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV RustSec CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD parse_duration_project parse_duration
cpe:2.3:a:parse_duration_project:parse_duration:*:*:*:*:*:rust:*:*
<= 2021-03-18
OSV crates.io parse_duration <= 2.1.1
OSV crates.io parse_duration >= 0.0.0-0

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 1 Apr 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Mar 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.