CVE-2026-42199
Received Received - Intake
Integer Overflow in Grid Rust Library

Publication date: 2026-05-08

Last updated on: 2026-05-08

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-08
Last Modified
2026-05-08
Generated
2026-05-09
AI Q&A
2026-05-09
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-190 The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in the Rust data structure library called Grid, specifically in versions from 0.17.0 up to but not including 1.0.1. It involves an integer overflow in the function Grid::expand_rows(), which can cause a mismatch between the grid's logical dimensions and its underlying storage. When this internal consistency is broken, the safe method get() might call get_unchecked() with an invalid index, leading to Undefined Behavior.


How can this vulnerability impact me? :

The impact of this vulnerability is that it can cause Undefined Behavior in applications using the affected Grid versions. Specifically, the integer overflow can corrupt internal data structures, potentially leading to crashes or other unpredictable behavior. According to the CVSS score, the vulnerability requires local access with low privileges and no user interaction, and it does not affect confidentiality or integrity but can cause availability issues.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, upgrade the Grid Rust library to version 1.0.1 or later, where the integer overflow issue in Grid::expand_rows() has been patched.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart