GHSA-8655-xgh5-5vvq: Fast float Fast-fault Has A Segmentation Fault Vulnerability
MODERATEGHSA-8655-xgh5-5vvq is a MODERATE fast-fault has a segmentation fault vulnerability (General Security Weakness) affecting Fast float libraries in the crates.io ecosystem. The issue involves fast-fault has a segmentation fault due to lack of bound check. Remediation is available in the latest vendor maintenance releases.
GHSA-8655-xgh5-5vvq at a Glance
How to Fix GHSA-8655-xgh5-5vvq
To remediate this vulnerability, upgrade all affected Fast float dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade fast-float to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for fast-float
How to Check if You Are Affected
To determine whether your application is affected by GHSA-8655-xgh5-5vvq, inspect your project dependencies for Fast float:
inspect dependencies for fast-float
Analyze the terminal output to locate any version of Fast float in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Fast float, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-8655-xgh5-5vvq Affected Fast float Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fast-float
|
crates.io |
≤ 0.2.0
|
|
References
Frequently Asked Questions
What is GHSA-8655-xgh5-5vvq?
Which Fast float versions are affected?
What version fixes GHSA-8655-xgh5-5vvq?
Is fast-float affected?
What CWE is associated with GHSA-8655-xgh5-5vvq?
How can I check crates.io dependencies for GHSA-8655-xgh5-5vvq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8655-xgh5-5vvq",
"modified" : "2025-01-29T22:21:18Z",
"published" : "2025-01-29T22:21:17Z",
"aliases" : [ ],
"summary" : "fast-fault has a segmentation fault due to lack of bound check",
"details" : "In this case, the \"fast_float::common::AsciiStr::first\" method within the \"AsciiStr\" struct \nuses the unsafe keyword to reading from memory without performing bounds checking. \nSpecifically, it directly dereferences a pointer offset by \"self.ptr\".\nBecause of the above reason, the method accesses invalid memory address when it takes an empty string as its input.\nThis approach violates Rust’s memory safety guarantees, as it can lead to invalid memory access if empty buffer is provided.\n\nNo patched version for fast-float crate has been released, but a patch is available in the fast-float2 fork.\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "fast-float"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aldanor/fast-float-rust/issues/38"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aldanor/fast-float-rust"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2025-0003.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-29T22:21:17Z",
"nvd_published_at" : null
}
}