GO-2026-4868

Missing bound checks can lead to memory corruption in safe Go in cmd/compile

At a glance

Published
Updated
CVE
CVE-2026-27143
Aliases
BIT-golang-2026-27143

Description

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

PackageVersions
Go · toolchainintroduced 0, fixed 1.25.9, introduced 1.26.0-0, fixed 1.26.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database