CVE-2026-42500

GO-2026-5031 · published 29 May 2026 · updated 14 Nov 2026

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

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 0.41.0 and golang.org/x/image 0.41.0.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
golang.org/x/image<0.41.00.41.0
go: golang.org/x/image<0.41.00.41.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-42500 severity on Zeptric[![CVE-2026-42500](https://zeptric.io/badge/cve/CVE-2026-42500.svg)](https://zeptric.io/cve/CVE-2026-42500)