Files
vuln-osv/data/crates.io/RUSTSEC-2025-0002.json

1 line
1.5 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"schema_version":"1.7.3","id":"RUSTSEC-2025-0002","published":"2025-01-13T12:00:00Z","modified":"2025-10-28T06:29:25.294864Z","aliases":["GHSA-jqcp-xc3v-f446"],"summary":"Segmentation fault due to lack of bound check","details":"In this case, the \"fast_float2::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.","affected":[{"package":{"name":"fast-float2","ecosystem":"crates.io","purl":"pkg:cargo/fast-float2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.2.2"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":["fast_float2::common::AsciiStr::first"],"os":[]}},"database_specific":{"categories":["memory-exposure"],"cvss":null,"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0002.json"}}],"references":[{"type":"PACKAGE","url":"https://crates.io/crates/fast-float2"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2025-0002.html"},{"type":"REPORT","url":"https://github.com/aldanor/fast-float-rust/issues/38"}],"database_specific":{"license":"CC0-1.0"}}