{"id":"RUSTSEC-2025-0003","summary":"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.","aliases":["GHSA-8655-xgh5-5vvq"],"modified":"2025-10-28T06:29:23.825943Z","published":"2025-01-13T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/fast-float"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2025-0003.html"},{"type":"REPORT","url":"https://github.com/aldanor/fast-float-rust/issues/38"}],"affected":[{"package":{"name":"fast-float","ecosystem":"crates.io","purl":"pkg:cargo/fast-float"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}],"ecosystem_specific":{"affects":{"arch":[],"os":[],"functions":["fast_float::common::AsciiStr::first"]},"affected_functions":null},"database_specific":{"informational":null,"categories":["memory-exposure"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0003.json","cvss":null}}],"schema_version":"1.7.3"}