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.
References:MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXFwZ3YtZzc5Mi13aDZ4
Uncontrolled Resource Consumption in parse_duration
Affected Packages | Affected Versions | Fixed Versions | |
---|---|---|---|
cargo:parse_duration | <= 2.1.1 | No known fixed version | |
Affected Version RangesAll affected versions0.1.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 2.0.0, 2.0.1, 2.1.0, 2.1.1 |