GHSA-mrrw-grhq-86gf: Ascii Ascii (crate) Allows Out-of-bounds Array Vulnerability
MODERATEGHSA-mrrw-grhq-86gf is a MODERATE ascii (crate) allows out-of-bounds array vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Ascii libraries in the crates.io ecosystem. The issue involves ascii (crate) allows out-of-bounds array indexing in safe code. Remediation is available by upgrading affected packages to version 0.9.3.
GHSA-mrrw-grhq-86gf at a Glance
How to Fix GHSA-mrrw-grhq-86gf
To remediate this vulnerability, upgrade all affected Ascii dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade ascii to 0.9.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ascii
How to Check if You Are Affected
To determine whether your application is affected by GHSA-mrrw-grhq-86gf, inspect your project dependencies for Ascii:
inspect dependencies for ascii
Analyze the terminal output to locate any version of Ascii in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Ascii, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-mrrw-grhq-86gf Affected Ascii Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ascii
|
crates.io |
≥ 0.7.0
< 0.9.3
|
0.9.3
|
References
Frequently Asked Questions
What is GHSA-mrrw-grhq-86gf?
Which Ascii versions are affected?
What version fixes GHSA-mrrw-grhq-86gf?
Is ascii affected?
What CWE is associated with GHSA-mrrw-grhq-86gf?
How can I check crates.io dependencies for GHSA-mrrw-grhq-86gf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mrrw-grhq-86gf",
"modified" : "2026-07-16T18:56:57Z",
"published" : "2023-02-28T20:30:10Z",
"aliases" : [ ],
"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.\n\nThe flaw was corrected in commit [8a6c779](https://github.com/tomprogrammer/rust-ascii/pull/63/commits/8a6c7798c202766bd57d70fb8d12739dd68fb9dc) by removing those impls.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "ascii"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.7.0"
}, {
"fixed" : "0.9.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tomprogrammer/rust-ascii/issues/64"
}, {
"type" : "WEB",
"url" : "https://github.com/tomprogrammer/rust-ascii/pull/63/commits/8a6c7798c202766bd57d70fb8d12739dd68fb9dc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tomprogrammer/rust-ascii"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2023-0015.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-28T20:30:10Z",
"nvd_published_at" : null
}
}