CVE-2026-42500: golang.org/x/image/bmp · Improper Validation of Array Index
Affects golang.org/x/image/bmpSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.41.0 when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.41.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 29 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade golang.org/x/image/bmp to 0.41.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| golang.org/x/imagegolang.org/x/image/bmp | Affected
| Fixed in
|
Gogolang.org/x/image/bmppkg:golang/golang.org/x/image/bmpOther threats | Affected
| Fixed in– |
Gogolang.org/x/image/bmppkg:golang/golang.org/x/image/bmpOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, users should consider validating or sanitizing BMP files before decoding to avoid triggering the panic.
Description
CVE-2026-42500 is a medium severity vulnerability in the golang.org/x/image/bmp package where decoding a paletted BMP file with an out-of-range palette index causes a panic due to improper validation of the array index. This results in a denial of service condition by crashing the image decoding process. There is no indication of confidentiality, integrity, or privilege impact.