GHSA-x8jh-xj3x-gx3c: `fast-float` has multiple soundness issues
fast-float contains multiple soundness issues: 1. Undefined behavior when checking input length, which has been merged but no package pubished. 1. Many functions marked as safe with non-local safety guarantees The library is also unmaintained. Alternatives For quickly parsing floating-point numbers third-party crates are generally no longer needed.
Published Nov 12, 2024
Affected packages
fast-float
- Ecosystem
- Rust (crates.io)
- Affected
- <= 0.2.0
- Fixed in
- No patched version yet
- Check
cargo tree -i fast-float
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
fast-float contains multiple soundness issues:
- Undefined behavior when checking input length, which has been merged but no package pubished.
- Many functions marked as safe with non-local safety guarantees
The library is also unmaintained.
Alternatives
For quickly parsing floating-point numbers third-party crates are generally no longer needed. A fast float parsing algorithm by the author of lexical has been merged into libcore. When requiring direct parsing from bytes and/or partial parsers, the `fast-float2` fork of fast-float containing these security patches and reduces overall usage of unsafe.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
