GHSA-x8jh-xj3x-gx3c

Suggest an improvement
Source
https://github.com/advisories/GHSA-x8jh-xj3x-gx3c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-x8jh-xj3x-gx3c/GHSA-x8jh-xj3x-gx3c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x8jh-xj3x-gx3c
Published
2024-11-12T20:48:39Z
Modified
2024-11-12T20:48:39Z
Severity
  • 2.7 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
`fast-float` has multiple soundness issues
Details

fast-float contains multiple soundness issues:

  1. Undefined behavior when checking input length, which has been merged but no package pubished.
  2. 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

Affected packages

crates.io / fast-float

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.2.0