Panic when reading out of bound palette index in golang.org/x/image/bmp
Summary
| CVE | CVE-2026-42500 |
|---|---|
| State | PUBLISHED |
| Assigner | Go |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-29 20:16:23 UTC |
| Updated | 2026-07-22 06:10:00 UTC |
| Description | Decoding a paletted BMP file with an out-of-range palette index results in a panic when accessing pixels in the invalid image. |
Risk And Classification
Primary CVSS: v3.1 5.3 MEDIUM from ADP
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS: 0.003840000 probability, percentile 0.309530000 (date 2026-07-22)
Problem Types: CWE-129: Improper Validation of Array Index
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
LowCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Golang.orgximage | Golang.org/x/image/bmp | affected 0.41.0 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| go.dev/issue/79576 | [email protected] | go.dev | |
| groups.google.com/g/golang-announce/c/uhYX90BlBvI | [email protected] | groups.google.com | |
| go.dev/cl/781500 | [email protected] | go.dev | |
| pkg.go.dev/vuln/GO-2026-5031 | [email protected] | pkg.go.dev | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.