Skip to main content
VulnerabilityPublished

CVE-2026-42500: golang.org/x/image/bmp · Improper Validation of Array Index

Affects golang.org/x/image/bmpSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
golang.org/x/imagegolang.org/x/image/bmpAffected
  • <0.41.0
Fixed in
  • 0.41.0
Gogolang.org/x/image/bmppkg:golang/golang.org/x/image/bmpOther threatsAffected
  • *
Fixed in–
Gogolang.org/x/image/bmppkg:golang/golang.org/x/image/bmpOther threatsAffected
  • <0.41.0
Fixed in
  • 0.41.0

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.

References

Community reviews

Loading reviews…