VDB
KO

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / golang.org/x/image
Introduced in: 0 Fixed in: 0.41.0
Fix go get golang.org/x/image@v0.41.0

References