CVE-2026-42500

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

Published May 29, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Decoding a paletted BMP file with an out-of-range palette index results in a panic when accessing pixels in the invalid image.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Golang
Golang image
Vendors & Products Golang
Golang image
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Decoding a paletted BMP file with an out-of-range palette index results in a panic when accessing pixels in the invalid image.
Title Panic when reading out of bound palette index in golang.org/x/image/bmp
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
May 29, 2026, 7:51 PM
Reserved
Apr 28, 2026, 12:21 AM
Status
Deferred
Published
May 29, 2026, 8:16 PM
Modified
Jul 22, 2026, 6:10 AM