Advisory

GHSA-mrrw-grhq-86gf

Also known as: RUSTSEC-2023-0015

Summary

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

Details

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 by removing those impls.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-02-28 20:30 UTC
Modified
2026-07-16 19:00 UTC

Affected packages and fixes

ascii

crates.io · All systems

Affected

  • introduced 0.7.0, fixed 0.9.3 (semver)

Fixed versions

0.9.3

Fix

  • Fixed version 0.9.3
    cargo update -p ascii --precise 0.9.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences