# GHSA-MRRW-GRHQ-86GF: Ascii (crate) allows out-of-bounds array indexing in safe code

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2023-02-28
- Modified: 2026-07-16

## Also published as

- [RUSTSEC-2023-0015](https://cve.now/RUSTSEC-2023-0015.md) (RustSec)

## Affected versions

- ascii (crates.io): from 0.7.0, fixed in 0.9.3

## 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.

## References

- https://github.com/tomprogrammer/rust-ascii/issues/64
- https://github.com/tomprogrammer/rust-ascii/pull/63/commits/8a6c7798c202766bd57d70fb8d12739dd68fb9dc
- https://github.com/tomprogrammer/rust-ascii
- https://rustsec.org/advisories/RUSTSEC-2023-0015.html

Page: https://cve.now/GHSA-MRRW-GRHQ-86GF

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
