Advisory

GO-2026-5031

Also known as: CVE-2026-42500

Summary

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.

Severity

Not rated by the source.

Dates

Published
2026-05-29 18:17 UTC
Modified
2026-11-14 13:12 UTC

Affected packages and fixes

golang.org/x/image

Go · All systems

Affected

  • introduced 0, fixed 0.41.0 (semver)

Fixed versions

0.41.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences