# GHSA-X8JH-XJ3X-GX3C: fast-float has multiple soundness issues

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2024-11-12
- Modified: 2026-09-10

## Also published as

- [RUSTSEC-2024-0379](https://cve.now/RUSTSEC-2024-0379.md) (RustSec)

## Affected versions

- fast-float (crates.io): through 0.2.0

## Description

`fast-float` contains multiple soundness issues:

 1. [Undefined behavior when checking input length](https://github.com/aldanor/fast-float-rust/issues/28), which has been merged but no package [pubished](https://github.com/aldanor/fast-float-rust/issues/35).
 1. [Many functions marked as safe with non-local safety guarantees](https://github.com/aldanor/fast-float-rust/issues/37)

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](https://github.com/rust-lang/rust/pull/86761) into libcore. When requiring direct parsing from bytes and/or partial parsers, the [`fast-float2`](https://crates.io/crates/fast-float2) fork of `fast-float` containing these security patches and reduces overall usage of unsafe.

## References

- https://github.com/aldanor/fast-float-rust/issues/28
- https://github.com/aldanor/fast-float-rust/issues/35
- https://github.com/aldanor/fast-float-rust/issues/37
- https://github.com/aldanor/fast-float-rust
- https://rustsec.org/advisories/RUSTSEC-2024-0379.html

Page: https://cve.now/GHSA-X8JH-XJ3X-GX3C

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
