GHSA-8655-xgh5-5vvq – fast-float
Package
Manager: cargo
Name: fast-float
Vulnerable Version: >=0 <=0.2.0
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H/E:F/RL:O/RC:C
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
EPSS: N/A pctlN/A
Details
fast-fault has a segmentation fault due to lack of bound check In this case, the "fast_float::common::AsciiStr::first" method within the "AsciiStr" struct uses the unsafe keyword to reading from memory without performing bounds checking. Specifically, it directly dereferences a pointer offset by "self.ptr". Because of the above reason, the method accesses invalid memory address when it takes an empty string as its input. This approach violates Rust’s memory safety guarantees, as it can lead to invalid memory access if empty buffer is provided. No patched version for fast-float crate has been released, but a patch is available in the fast-float2 fork.
Metadata
Created: 2025-01-29T22:21:17Z
Modified: 2025-01-29T22:21:18Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-8655-xgh5-5vvq/GHSA-8655-xgh5-5vvq.json
CWE IDs: []
Alternative ID: N/A
Finding: F111
Auto approve: 1