Skip to content
OpenAdvisories
Medium GHSA-mrrw-grhq-86gf RUSTSEC-2023-0015

Ascii (crate) allows out-of-bounds array indexing in safe code

Published Feb 28, 2023 · Updated Jul 16, 2026 · Assigned by GHSA

Description

Affected version of this crate had implementation of `From<&mut AsciiStr>` for `&mut [u8]` and `&mut str`. This can result in out-of-bounds array indexing in safe code.

The flaw was corrected in commit [8a6c779](https://github.com/tomprogrammer/rust-ascii/pull/63/commits/8a6c7798c202766bd57d70fb8d12739dd68fb9dc) by removing those impls.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io ascii >= 0.7.0, < 0.9.3 0.9.3 GHSA-mrrw-grhq-86gf
crates.io ascii >= 0.6.1-0, < 0.9.3 0.9.3 RUSTSEC-2023-0015

References