# GHSA-mrrw-grhq-86gf: Ascii (crate) allows out-of-bounds array indexing in safe code

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-02-25T12:00:00.000Z
- Modified: 2026-07-16T19:00:21.951Z
- Also known as: RUSTSEC-2023-0015
- Weaknesses: CWE-119

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

(As written by GitHub Advisory Database.)

## Affected

- ascii (crates.io): from 0.7.0 before 0.9.3; from 0.6.1-0 before 0.9.3

## References

- <https://github.com/tomprogrammer/rust-ascii/issues/64> (report, web)
- <https://github.com/tomprogrammer/rust-ascii/pull/63/commits/8a6c7798c202766bd57d70fb8d12739dd68fb9dc> (web)
- <https://github.com/tomprogrammer/rust-ascii> (package)
- <https://rustsec.org/advisories/RUSTSEC-2023-0015.html> (advisory, web)
- <https://crates.io/crates/ascii> (package)

## Sources

- GitHub Advisory Database: [GHSA-mrrw-grhq-86gf](https://github.com/advisories/GHSA-mrrw-grhq-86gf), CC-BY-4.0, modified 2026-07-16
- RustSec Advisory Database: [RUSTSEC-2023-0015](https://rustsec.org/advisories/RUSTSEC-2023-0015.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-mrrw-grhq-86gf · Whole record: https://cve.day/GHSA-mrrw-grhq-86gf.json · Rebuilt by cve.day 2026-11-25T22:56:43.140Z
