GHSA-x8jh-xj3x-gx3c: Fast float `fast-float` Has Multiple Soundness Issues Vulnerability
LOWGHSA-x8jh-xj3x-gx3c is a LOW `fast-float` has multiple soundness issues vulnerability (General Security Weakness) affecting Fast float libraries in the crates.io ecosystem. The issue involves `fast-float` has multiple soundness issues. Remediation is available in the latest vendor maintenance releases.
GHSA-x8jh-xj3x-gx3c at a Glance
How to Fix GHSA-x8jh-xj3x-gx3c
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-x8jh-xj3x-gx3c, 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-x8jh-xj3x-gx3c 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-x8jh-xj3x-gx3c?
Which Fast float versions are affected?
What version fixes GHSA-x8jh-xj3x-gx3c?
Is fast-float affected?
What CWE is associated with GHSA-x8jh-xj3x-gx3c?
How can I check crates.io dependencies for GHSA-x8jh-xj3x-gx3c?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x8jh-xj3x-gx3c",
"modified" : "2024-11-12T20:48:39Z",
"published" : "2024-11-12T20:48:39Z",
"aliases" : [ ],
"summary" : "`fast-float` has multiple soundness issues",
"details" : "`fast-float` contains multiple soundness issues:\n\n 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).\n 1. [Many functions marked as safe with non-local safety guarantees](https://github.com/aldanor/fast-float-rust/issues/37)\n\nThe library is also unmaintained.\n\n## Alternatives\n\nFor 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.\n",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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" : [ {
"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/28"
}, {
"type" : "WEB",
"url" : "https://github.com/aldanor/fast-float-rust/issues/35"
}, {
"type" : "WEB",
"url" : "https://github.com/aldanor/fast-float-rust/issues/37"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aldanor/fast-float-rust"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2024-0379.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-12T20:48:39Z",
"nvd_published_at" : null
}
}