Vulnerability · Published May 29, 2026 · Assigned by Go

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

Medium 5.3

In plain English

A medium-severity security flaw in golang.org/x/image/bmp from golang.org/x/image. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.4%top 67.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-golang-x-imageno fix listedDEBIAN-CVE-2026-42500
Debian:13golang-golang-x-imageno fix listedDEBIAN-CVE-2026-42500
Debian:14golang-golang-x-image0.42.0-1DEBIAN-CVE-2026-42500
Gogolang.org/x/image0.41.0GO-2026-5031
Ubuntu:22.04:LTSgolang-golang-x-imageno fix listedUBUNTU-CVE-2026-42500
Ubuntu:24.04:LTSgolang-golang-x-imageno fix listedUBUNTU-CVE-2026-42500
Ubuntu:25.10golang-golang-x-imageno fix listedUBUNTU-CVE-2026-42500
Ubuntu:26.04:LTSgolang-golang-x-imageno fix listedUBUNTU-CVE-2026-42500
Ubuntu:26.10golang-golang-x-imageno fix listedUBUNTU-CVE-2026-42500

Affected products (as reported)

VendorProductVersions
golang.org/x/image golang.org/x/image/bmp 0 – before 0.41.0

References