Advisory

RUSTSEC-2023-0015

Also known as: GHSA-mrrw-grhq-86gf

Summary

Ascii 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

Not rated by the source.

Dates

Published
2023-02-25 12:00 UTC
Modified
2023-11-08 04:21 UTC

Affected packages and fixes

ascii

crates.io · All systems

Affected

  • introduced 0.6.1-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: RustSec Advisory Database · CC0-1.0

Sources & licences