logo

GHSA-jqcp-xc3v-f446 fast-float2

Package

Manager: cargo
Name: fast-float2
Vulnerable Version: >=0 <0.2.2

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H/E:F/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

fast-float2 has a segmentation fault due to lack of bound check In this case, the "fast_float2::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.

Metadata

Created: 2025-01-29T22:19:01Z
Modified: 2025-01-29T22:21:13Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-jqcp-xc3v-f446/GHSA-jqcp-xc3v-f446.json
CWE IDs: []
Alternative ID: N/A
Finding: F111
Auto approve: 1