CVE-2026-42199 Grid: Integer Overflow in Grid::expand_rows Leads to Safe-API Undefined Behavior
MediumCVSS 6.2
EPSS 0.19%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io grid(crates.io) | >= 0.17.0, < 1.0.1; >= 0.17.0, <= 1.0.0 | 1.0.1 | Fixed |
| becheran grid | = >= 0.17.0, < 1.0.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| becheran grid | = >= 0.17.0, < 1.0.1 | No fix listed |
| crates.io grid(crates.io) | >= 0.17.0, < 1.0.1 | 1.0.1 |
| crates.io grid(crates.io) | >= 0.17.0, <= 1.0.0 | No fix listed |
References
- https://github.com/becheran/grid/security/advisories/GHSA-38c5-483c-4qqp exploit vendor-advisory
- https://github.com/becheran/grid/commit/be213bd3528727148bef2d523c89e95d1fd9c072 patch
- https://github.com/becheran/grid/releases/tag/v1.0.1
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com