GHSA-x8jh-xj3x-gx3c: Fast float `fast-float` Has Multiple Soundness Issues Vulnerability

LOW
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-x8jh-xj3x-gx3c
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Fast float
Package Ecosystem crates.io
Published Date
Last Updated

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.

fast-float fixed: Latest secure release
Upgrade fast-float to Latest secure release
Verify Direct and Transitive Dependencies

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

`fast-float` contains multiple soundness issues: 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). 1. [Many functions marked as safe with non-local safety guarantees](https://github.com/aldanor/fast-float-rust/issues/37) 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](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.

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?
GHSA-x8jh-xj3x-gx3c is a security vulnerability in Fast float involving `fast-float` has multiple soundness issues under General Security Weakness.
Which Fast float versions are affected?
Affected versions include releases prior to current release patches across affected packages: fast-float.
What version fixes GHSA-x8jh-xj3x-gx3c?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is fast-float affected?
Yes, fast-float is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-x8jh-xj3x-gx3c?
GHSA-x8jh-xj3x-gx3c is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-x8jh-xj3x-gx3c?
Run the dependency tree command: 'inspect dependencies for fast-float'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}