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

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-05-29T18:17:10.000Z
- Modified: 2026-11-23T21:12:29.950Z
- Also known as: GO-2026-5031
- Related: RHSA-2026:62391, RHSA-2026:66561
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## Description

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

(As written by CVE List.)

## Affected

- golang.org/x/image/bmp: before 0.41.0
- golang.org/x/image (Go): before 0.41.0

## References

- <https://go.dev/issue/79576> (report)
- <https://groups.google.com/g/golang-announce/c/uhYX90BlBvI> (web)
- <https://go.dev/cl/781500> (fix)
- <https://pkg.go.dev/vuln/GO-2026-5031>

## Sources

- CVE List: [CVE-2026-42500](https://www.cve.org/CVERecord?id=CVE-2026-42500), CVE Terms of Use, modified 2026-05-29
- Go Vulnerability Database: [GO-2026-5031](https://pkg.go.dev/vuln/GO-2026-5031), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-42500](https://nvd.nist.gov/vuln/detail/CVE-2026-42500), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-42500 · Whole record: https://cve.day/CVE-2026-42500.json · Rebuilt by cve.day 2026-11-25T22:59:23.361Z
