GHSA-8655-xgh5-5vvq: Fast float Fast-fault Has A Segmentation Fault Vulnerability

MODERATE
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-8655-xgh5-5vvq
Severity MODERATE
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-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.

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

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.

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?
GHSA-8655-xgh5-5vvq is a security vulnerability in Fast float involving fast-fault has a segmentation fault due to lack of bound check 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-8655-xgh5-5vvq?
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-8655-xgh5-5vvq?
GHSA-8655-xgh5-5vvq is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-8655-xgh5-5vvq?
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-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
  }
}