{"id":"GHSA-2326-pfpj-vx3h","aliases":["GHSA-2326-pfpj-vx3h","RUSTSEC-2023-0086"],"related":["RUSTSEC-2023-0055"],"kind":"vulnerability","state":"published","title":"lexical-core has multiple soundness issues","summary":"`RUSTSEC-2024-0377` contains multiple soundness issues:\n\n 1. [Bytes::read() allows creating instances of types with invalid bit patterns](https://github.com/Alexhuszagh/rust-lexical/issues/102)\n 1. [BytesIter::read() advances iterators out of bounds](https://github.com/Alexhuszagh/rust-lexical/issues/101)\n 1. [The `BytesIter` trait has safety invariants but is public and not marked `unsafe`](https://github.com/Alexhuszagh/rust-lexical/issues/104)\n 1. [`write_float()` calls `MaybeUninit::assume_init()` on uninitialized data, which is is not allowed by the Rust abstract machine](https://github.com/Alexhuszagh/rust-lexical/issues/95)\n 1. [`radix()` calls `MaybeUninit::assume_init()` on uninitialized data, which is is not allowed by the Rust abstract machine](https://github.com/Alexhuszagh/rust-lexical/issues/126)\n\nVersion 1.0 fixes these issues, removes the vast majority of `unsafe` code, and also fixes some correctness issues.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"`RUSTSEC-2024-0377` contains multiple soundness issues:\n\n 1. [Bytes::read() allows creating instances of types with invalid bit patterns](https://github.com/Alexhuszagh/rust-lexical/issues/102)\n 1. [BytesIter::read() advances iterators out of bounds](https://github.com/Alexhuszagh/rust-lexical/issues/101)\n 1. [The `BytesIter` trait has safety invariants but is public and not marked `unsafe`](https://github.com/Alexhuszagh/rust-lexical/issues/104)\n 1. [`write_float()` calls `MaybeUninit::assume_init()` on uninitialized data, which is is not allowed by the Rust abstract machine](https://github.com/Alexhuszagh/rust-lexical/issues/95)\n 1. [`radix()` calls `MaybeUninit::assume_init()` on uninitialized data, which is is not allowed by the Rust abstract machine](https://github.com/Alexhuszagh/rust-lexical/issues/126)\n\nVersion 1.0 fixes these issues, removes the vast majority of `unsafe` code, and also fixes some correctness issues.","format":"markdown","source":"ghsa"}],"published":"2023-09-03T12:00:00.000Z","modified":"2026-09-10T03:50:55.529Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.0"}],"ecosystem":"crates.io","package":"lexical-core","purl":"pkg:cargo/lexical-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"1.0.0"}],"ecosystem":"crates.io","package":"lexical-core","purl":"pkg:cargo/lexical-core","source":"rustsec"}],"references":[{"url":"https://github.com/Alexhuszagh/rust-lexical/issues/101","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Alexhuszagh/rust-lexical/issues/102","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Alexhuszagh/rust-lexical/issues/104","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Alexhuszagh/rust-lexical/issues/126","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Alexhuszagh/rust-lexical/issues/95","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Alexhuszagh/rust-lexical","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-c2hm-mjxv-89r4","tags":["advisory"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0055","tags":["web"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0086.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/lexical-core","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2326-pfpj-vx3h","url":"https://github.com/advisories/GHSA-2326-pfpj-vx3h","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:55.529Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0086","url":"https://rustsec.org/advisories/RUSTSEC-2023-0086.html","licence":"CC0-1.0","modified":"2026-02-04T03:49:11.161Z"}],"updatedAt":"2026-11-25T22:56:43.169Z"}