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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-golang-x-image | no fix listed | DEBIAN-CVE-2026-42500 |
| Debian:13 | golang-golang-x-image | no fix listed | DEBIAN-CVE-2026-42500 |
| Debian:14 | golang-golang-x-image | 0.42.0-1 | DEBIAN-CVE-2026-42500 |
| Go | golang.org/x/image | 0.41.0 | GO-2026-5031 |
| Ubuntu:22.04:LTS | golang-golang-x-image | no fix listed | UBUNTU-CVE-2026-42500 |
| Ubuntu:24.04:LTS | golang-golang-x-image | no fix listed | UBUNTU-CVE-2026-42500 |
| Ubuntu:25.10 | golang-golang-x-image | no fix listed | UBUNTU-CVE-2026-42500 |
| Ubuntu:26.04:LTS | golang-golang-x-image | no fix listed | UBUNTU-CVE-2026-42500 |
| Ubuntu:26.10 | golang-golang-x-image | no fix listed | UBUNTU-CVE-2026-42500 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| golang.org/x/image | golang.org/x/image/bmp | 0 – before 0.41.0 |