GHSA-X8JH-XJ3X-GX3C
Vulnerability from github – Published: 2024-11-12 20:48 – Updated: 2024-11-12 20:48
VLAI?
Summary
`fast-float` has multiple soundness issues
Details
fast-float contains multiple soundness issues:
- Undefined behavior when checking input length, which has been merged but no package pubished.
- 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.
Severity ?
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "fast-float"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.2.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2024-11-12T20:48:39Z",
"nvd_published_at": null,
"severity": "LOW"
},
"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",
"id": "GHSA-x8jh-xj3x-gx3c",
"modified": "2024-11-12T20:48:39Z",
"published": "2024-11-12T20:48:39Z",
"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"
}
],
"schema_version": "1.4.0",
"severity": [
{
"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",
"type": "CVSS_V4"
}
],
"summary": "`fast-float` has multiple soundness issues"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…