CVE-2021-29932
HIGH 7.5CVSS 3.1Uncontrolled 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | parse_duration_project | parse_durationcpe: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
- https://rustsec.org/advisories/RUSTSEC-2021-0041.html · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-29932 · ADVISORY
- https://github.com/zeta12ti/parse_duration/issues/21 · WEB, REPORT
- https://github.com/zeta12ti/parse_duration · PACKAGE
- https://crates.io/crates/parse_duration · PACKAGE
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)