{"id":"GHSA-mrrw-grhq-86gf","aliases":["GHSA-mrrw-grhq-86gf","RUSTSEC-2023-0015"],"related":[],"kind":"vulnerability","state":"published","title":"Ascii (crate) allows out-of-bounds array indexing in safe code","summary":"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.\n\nThe flaw was corrected in commit [8a6c779](https://github.com/tomprogrammer/rust-ascii/pull/63/commits/8a6c7798c202766bd57d70fb8d12739dd68fb9dc) by removing those impls.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\nThe flaw was corrected in commit [8a6c779](https://github.com/tomprogrammer/rust-ascii/pull/63/commits/8a6c7798c202766bd57d70fb8d12739dd68fb9dc) by removing those impls.","format":"markdown","source":"ghsa"}],"published":"2023-02-25T12:00:00.000Z","modified":"2026-07-16T19:00:21.951Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-119"],"affected":[{"ranges":[{"type":"semver","introduced":"0.7.0","status":"affected","fixed":"0.9.3"}],"ecosystem":"crates.io","package":"ascii","purl":"pkg:cargo/ascii","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.6.1-0","status":"affected","fixed":"0.9.3"}],"ecosystem":"crates.io","package":"ascii","purl":"pkg:cargo/ascii","source":"rustsec"}],"references":[{"url":"https://github.com/tomprogrammer/rust-ascii/issues/64","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/tomprogrammer/rust-ascii/pull/63/commits/8a6c7798c202766bd57d70fb8d12739dd68fb9dc","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tomprogrammer/rust-ascii","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0015.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/ascii","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mrrw-grhq-86gf","url":"https://github.com/advisories/GHSA-mrrw-grhq-86gf","licence":"CC-BY-4.0","modified":"2026-07-16T19:00:21.951Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0015","url":"https://rustsec.org/advisories/RUSTSEC-2023-0015.html","licence":"CC0-1.0","modified":"2023-11-08T04:21:16.691Z"}],"updatedAt":"2026-11-25T22:56:43.140Z"}