What’s Vulnerable › Vulnerabilities

CVE-2026-42500: Panic when reading out of bound palette index in golang.org/x/image/bmp

Description

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

Affected products

How to fix

Upgrade to a fixed version: golang.org/x/image/bmp 0.41.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-42500 or the next vulnerability affects your stack