# CVE-2021-29932: Uncontrolled Resource Consumption in parse_duration

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 64% of CVEs (2026-12-01)
- Published: 2021-03-18T12:00:00.000Z
- Modified: 2026-06-17T03:48:27.800Z
- Also known as: GHSA-qpgv-g792-wh6x, CAN-2021-1000007, RUSTSEC-2021-0041
- Weaknesses: CWE-400, CWE-770
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- parse_duration (crates.io): up to 2.1.1; from 0.0.0-0
- parse_duration_project parse_duration: up to 2021-03-18

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- RustSec Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0041.html> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29932> (advisory)
- <https://github.com/zeta12ti/parse_duration/issues/21> (report, web)
- <https://github.com/zeta12ti/parse_duration> (package)
- <https://crates.io/crates/parse_duration> (package)

## Sources

- CVE List: [CVE-2021-29932](https://www.cve.org/CVERecord?id=CVE-2021-29932), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-qpgv-g792-wh6x](https://github.com/advisories/GHSA-qpgv-g792-wh6x), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0041](https://rustsec.org/advisories/RUSTSEC-2021-0041.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-29932](https://nvd.nist.gov/vuln/detail/CVE-2021-29932), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29932 · Whole record: https://cve.day/CVE-2021-29932.json · Rebuilt by cve.day 2026-11-25T22:58:00.538Z
