# CVE-2026-42199: Grid: Integer Overflow in Grid::expand_rows Leads to Safe-API Undefined Behavior

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-24T15:57:36.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-38c5-483c-4qqp
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- becheran grid: >= 0.17.0, < 1.0.1
- grid (crates.io): from 0.17.0 before 1.0.1

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/becheran/grid/security/advisories/GHSA-38c5-483c-4qqp> (exploit, web)
- <https://github.com/becheran/grid/commit/be213bd3528727148bef2d523c89e95d1fd9c072> (web)
- <https://github.com/becheran/grid/releases/tag/v1.0.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42199> (advisory)
- <https://github.com/becheran/grid> (package)

## Sources

- CVE List: [CVE-2026-42199](https://www.cve.org/CVERecord?id=CVE-2026-42199), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-38c5-483c-4qqp](https://github.com/advisories/GHSA-38c5-483c-4qqp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42199](https://nvd.nist.gov/vuln/detail/CVE-2026-42199), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42199 · Whole record: https://cve.day/CVE-2026-42199.json · Rebuilt by cve.day 2026-11-25T22:59:21.114Z
