Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. lexical-core
  4. ›
  5. GHSA-2326-pfpj-vx3h

GHSA-2326-pfpj-vx3h: lexical-core has multiple soundness issues

September 16, 2024

RUSTSEC-2024-0377 contains multiple soundness issues:

  1. Bytes::read() allows creating instances of types with invalid bit patterns
  2. BytesIter::read() advances iterators out of bounds
  3. The BytesIter trait has safety invariants but is public and not marked unsafe
  4. write_float() calls MaybeUninit::assume_init() on uninitialized data, which is is not allowed by the Rust abstract machine
  5. radix() calls MaybeUninit::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.

References

  • github.com/Alexhuszagh/rust-lexical
  • github.com/Alexhuszagh/rust-lexical/issues/101
  • github.com/Alexhuszagh/rust-lexical/issues/102
  • github.com/Alexhuszagh/rust-lexical/issues/104
  • github.com/Alexhuszagh/rust-lexical/issues/126
  • github.com/Alexhuszagh/rust-lexical/issues/95
  • github.com/advisories/GHSA-2326-pfpj-vx3h
  • github.com/advisories/GHSA-c2hm-mjxv-89r4
  • rustsec.org/advisories/RUSTSEC-2023-0055
  • rustsec.org/advisories/RUSTSEC-2023-0086.html

Code Behaviors & Features

Detect and mitigate GHSA-2326-pfpj-vx3h with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.0

Fixed versions

  • 1.0.0

Solution

Upgrade to version 1.0.0 or above.

Source file

cargo/lexical-core/GHSA-2326-pfpj-vx3h.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:20 +0000.