GHSA-mrrw-grhq-86gf: Ascii Ascii (crate) Allows Out-of-bounds Array Vulnerability

MODERATE
CWE-119
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-mrrw-grhq-86gf
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Ascii
Package Ecosystem crates.io
Published Date
Last Updated

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.

ascii fixed: 0.9.3
Upgrade ascii to 0.9.3
Verify Direct and Transitive Dependencies

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

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.

GHSA-mrrw-grhq-86gf Affected Ascii Versions

1 component(s)
Fixed Versions:
0.9.3
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?
GHSA-mrrw-grhq-86gf is a security vulnerability in Ascii involving Ascii (crate) allows out-of-bounds array indexing in safe code under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Ascii versions are affected?
Affected versions include releases prior to 0.9.3 across affected packages: ascii.
What version fixes GHSA-mrrw-grhq-86gf?
Upgrading to 0.9.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ascii affected?
Yes, ascii is affected in releases prior to 0.9.3. Upgrade your dependency to 0.9.3 or later.
What CWE is associated with GHSA-mrrw-grhq-86gf?
GHSA-mrrw-grhq-86gf is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (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.).
How can I check crates.io dependencies for GHSA-mrrw-grhq-86gf?
Run the dependency tree command: 'inspect dependencies for ascii'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}