{
  "schema_version": "1.4.0",
  "id": "GHSA-mrrw-grhq-86gf",
  "modified": "2023-02-28T20:30:10Z",
  "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.\n",
  "severity": [],
  "affected": [
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "ascii"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0.6.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": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-02-28T20:30:10Z",
    "nvd_published_at": null
  }
}