RUSTSEC-2024-0379
LOW`fast-float` has multiple soundness issues
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.
- Published
- 31 Oct 2024
- Last modified
- 10 Sep 2026
- Also known as
- GHSA-x8jh-xj3x-gx3c
- Sources
- OSV GHSA-x8jh-xj3x-gx3cJSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | fast-float | <= 0.2.0 | |
| OSV | crates.io | fast-float | >= 0.0.0-0 |
References
- https://github.com/aldanor/fast-float-rust/issues/28 · WEB, REPORT
- https://github.com/aldanor/fast-float-rust/issues/35 · WEB, REPORT
- https://github.com/aldanor/fast-float-rust/issues/37 · WEB, REPORT
- https://github.com/aldanor/fast-float-rust · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0379.html · WEB, ADVISORY
- https://crates.io/crates/fast-float · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 31 Oct 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Nov 2024)