Go Vulnerability Database
GO-2026-4868
Missing bound checks can lead to memory corruption in safe Go in cmd/compile
Details
Arithmetic over induction variables in loops were not correctly checked for underflow or overflow. As a result, the compiler would allow for invalid indexing to occur at runtime, potentially leading to memory corruption.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | toolchain | All versions before 1.25.9 (fixed in 1.25.9) From 1.26.0-0 before 1.26.2 (fixed in 1.26.2) |