Integer Overflow in Grid Data Structure for Rust by Becheran
CVE-2026-42199
6.2MEDIUM
What is CVE-2026-42199?
The Grid data structure by Becheran is susceptible to an integer overflow issue in the expand_rows() function. This flaw, found in versions from 0.17.0 to before 1.0.1, can lead to a disruption of the internal relationships between logical dimensions and storage. When this invariant is violated, the safe API method get() could be forced to call get_unchecked() with an invalid index. This scenario results in Undefined Behavior, possibly compromising application stability and security. Users are advised to upgrade to version 1.0.1 to mitigate this risk.
Affected Version(s)
grid >= 0.17.0, < 1.0.1
