GHSA-2326-pfpj-vx3h
LOWlexical-core has multiple soundness issues
RUSTSEC-2024-0377 contains multiple soundness issues:
- Bytes::read() allows creating instances of types with invalid bit patterns
- BytesIter::read() advances iterators out of bounds
- The
BytesItertrait has safety invariants but is public and not markedunsafe write_float()callsMaybeUninit::assume_init()on uninitialized data, which is is not allowed by the Rust abstract machineradix()callsMaybeUninit::assume_init()on uninitialized data, which is is not allowed by the Rust abstract machine
Version 1.0 fixes these issues, removes the vast majority of unsafe code, and also fixes some correctness issues.
- Published
- 3 Sep 2023
- Last modified
- 10 Sep 2026
- Also known as
- RUSTSEC-2023-0086
- Sources
- OSVJSONOSV RUSTSEC-2023-0086JSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | lexical-core | < 1.0.0 | 1.0.0 |
| OSV | crates.io | lexical-core | >= 0.0.0-0, < 1.0.0 | 1.0.0 |
References
- https://github.com/Alexhuszagh/rust-lexical/issues/101 · WEB, REPORT
- https://github.com/Alexhuszagh/rust-lexical/issues/102 · WEB, REPORT
- https://github.com/Alexhuszagh/rust-lexical/issues/104 · WEB, REPORT
- https://github.com/Alexhuszagh/rust-lexical/issues/126 · WEB, REPORT
- https://github.com/Alexhuszagh/rust-lexical/issues/95 · WEB, REPORT
- https://github.com/Alexhuszagh/rust-lexical · PACKAGE
- https://github.com/advisories/GHSA-c2hm-mjxv-89r4 · ADVISORY
- https://rustsec.org/advisories/RUSTSEC-2023-0055 · WEB
- https://rustsec.org/advisories/RUSTSEC-2023-0086.html · WEB, ADVISORY
- https://crates.io/crates/lexical-core · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Sep 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Sep 2024)