Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. fast-float
  4. ›
  5. GHSA-8655-xgh5-5vvq

GHSA-8655-xgh5-5vvq: fast-fault has a segmentation fault due to lack of bound check

January 29, 2025

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.

References

  • github.com/advisories/GHSA-8655-xgh5-5vvq
  • github.com/aldanor/fast-float-rust
  • github.com/aldanor/fast-float-rust/issues/38
  • rustsec.org/advisories/RUSTSEC-2025-0003.html

Code Behaviors & Features

Detect and mitigate GHSA-8655-xgh5-5vvq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.2.0

Solution

Unfortunately, there is no solution available yet.

Source file

cargo/fast-float/GHSA-8655-xgh5-5vvq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:45 +0000.