CVE-2026-42199
Integer Overflow in Grid Rust Library
Publication date: 2026-05-08
Last updated on: 2026-05-08
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
Helpful Resources
Exploitability
| 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.