ADVISORIES

Go Vulnerability Database

GO-2026-5031

Panic when reading out of bound palette index in golang.org/x/image/bmp

Details

Decoding a paletted BMP file with an out-of-range palette index results in a panic when accessing pixels in the invalid image.

Affected packages

EcosystemPackageAffected versions
Gogolang.org/x/image
All versions before 0.41.0 (fixed in 0.41.0)

References