{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0.17.0"
              },
              {
                "fixed": "1.0.1"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "c6288f165edb4f7f082703150148ef7e87d5c1cb"
            },
            {
              "fixed": "8caa81908f77d898c9b9c764b374d61f61cd6a20"
            }
          ],
          "repo": "https://github.com/becheran/grid",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-38c5-483c-4qqp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42199.json"
  },
  "details": "Grid is a data structure grid for rust. From version 0.17.0 to before version 1.0.1, an integer overflow in Grid::expand_rows() can corrupt the relationship between the grid’s logical dimensions and its backing storage. After the internal invariant is broken, the safe API get() may invoke get_unchecked() with an invalid index, resulting in Undefined Behavior. This issue has been patched in version 1.0.1.",
  "id": "CVE-2026-42199",
  "modified": "2026-07-08T05:37:29.485259277Z",
  "published": "2026-05-08T21:15:16.561Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/becheran/grid/releases/tag/v1.0.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42199.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/becheran/grid/security/advisories/GHSA-38c5-483c-4qqp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42199"
    },
    {
      "type": "FIX",
      "url": "https://github.com/becheran/grid/commit/be213bd3528727148bef2d523c89e95d1fd9c072"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Grid: Integer Overflow in Grid::expand_rows Leads to Safe-API Undefined Behavior"
}