Out-of-bounds Read Affecting golang.org/x/image/bmp package, versions <0.41.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOLANGORGXIMAGEBMP-17132072
  • published2 Jun 2026
  • disclosed29 May 2026
  • creditUnknown

Introduced: 29 May 2026

CVE-2026-42500  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade golang.org/x/image/bmp to version 0.41.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the Decoding process of BMP files containing a palette with out-of-range indices. An attacker can cause a panic and potentially disrupt application availability by supplying a crafted BMP file with invalid palette indices.

CVSS Base Scores

version 4.0
version 3.1