Skip to main content

Go x/image CVE-2026-42500

| EUVDEUVD-2026-33419 MEDIUM
2026-05-29 Go GHSA-m6fh-wvw4-4629
5.3
CVSS 3.1 · Vendor: Go
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft paletted BMP with out-of-range palette index
  2. Delivery
    Submit file to target Go application
  3. Exploit
    Application passes BMP to golang.org/x/image/bmp decoder
  4. Execution
    Decoder reads invalid palette index without bounds check
  5. Persist
    Go runtime panic triggered
  6. Impact
    Goroutine or process crashes (DoS)

Vulnerability Assessment

Exploitation Conditions

The target application must import and invoke the golang.org/x/image/bmp decoder on attacker-supplied input - meaning the application must accept BMP files from an untrusted source (e.g., a file upload endpoint, a URL-fetch-and-decode flow, or a message queue consuming external content). The BMP file must use an indexed color (paletted) mode, and at least one pixel value must reference an index beyond the palette's defined length. No authentication, special configuration, or non-default settings are required on the server side; the only prerequisite is that the application passes externally controlled BMP data to the vulnerable decoder. Exploitation is limited to applications using golang.org/x/image/bmp versions before 0.41.0; Go's standard library image/bmp (if it exists) is not implicated. Impact is bounded to availability (process/goroutine crash) - confidentiality and integrity are not at risk.

Impact

The CVSS 5.3 Medium score (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) accurately reflects the limited but remotely triggerable impact: confidentiality and integrity are unaffected, and availability impact is rated Low because the panic terminates only the decoding operation (or the goroutine/process handling it) rather than necessarily bringing down an entire service, depending on application architecture. SSVC signals Automatable:Yes, meaning an attacker can script bulk exploitation against exposed endpoints without manual effort, and Exploitation:None confirms no active exploitation observed at time of analysis. The vulnerability is not listed in the CISA KEV catalog, and no public proof-of-concept code has been identified. The metadata tag 'Information Disclosure' appears to be a mislabeling - the CVSS vector and description both indicate a pure availability (DoS) impact with no confidentiality or integrity loss; defenders should not treat this as a data-exposure risk. Real-world priority should be determined by whether the application processes BMP files from untrusted sources: internal tooling decoding only trusted images carries negligible risk, whereas a public API accepting arbitrary image uploads warrants prompt patching.

Exploit ScenarioDerived

An attacker uploads or submits a specially crafted paletted BMP file - one whose pixel data references a palette index exceeding the defined palette length - to a Go web service that uses golang.org/x/image/bmp to decode user-supplied images. The decoder accesses the invalid palette index without bounds checking, triggering a Go runtime panic that crashes the handling goroutine or, in simpler single-threaded applications, the entire process. By repeatedly submitting such files, the attacker can sustain a denial-of-service condition against the image-processing endpoint. No public proof-of-concept code has been identified, but the attack requires only a trivially crafted BMP file.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 29, 2026

Panic-induced denial of service in the golang.org/x/image/bmp decoder allows remote unauthenticated attackers to crash any Go application that processes untrusted BMP files. When a paletted BMP containing an out-of-range palette index is decoded, the image package accesses invalid memory and triggers a Go runtime panic, terminating the affected goroutine or process. No public exploit exists at time of analysis, but the attack is automatable per SSVC and requires no privileges or user interaction (CVSS AV:N/AC:L/PR:N/UI:N), making any internet-exposed BMP processing endpoint an accessible target.

RemediationAI

Upgrade golang.org/x/image to version 0.41.0 or later, which contains the upstream fix (go.dev/cl/781500). Run 'go get golang.org/x/image@v0.41.0' and rebuild affected binaries, then redeploy. Confirm the fix is in place by checking 'go list -m golang.org/x/image' against the running binary's module graph. If an immediate upgrade is not possible, the primary compensating control is to reject BMP file uploads or processing requests at the application boundary before they reach the decoder - for example, by enforcing a strict MIME type allowlist and rejecting 'image/bmp' or files with a BMP magic header (0x42 0x4D). This eliminates the attack surface entirely at the cost of losing BMP support. Sandboxing image decoding in a separate process with restricted privileges (e.g., via seccomp or a subprocess with a panic-recovery wrapper) can limit blast radius if BMP support must be retained. No additional server-level firewall rules meaningfully mitigate this, as the vulnerability is triggered by file content rather than a specific port or protocol.

Affected VersionsENISA

golang.org/x/image/bmp 0 <0.41.0

Affected Packages

go golang.org/x/image fix: 0.41.0
euvd golang_org_x_image_bmp fix: 0.41.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the BMP image decoder in the golang.org/x/image/bmp package (CPE: cpe:2.3:a:golang.org/x/image:golang.org/x/image/bmp:*:*:*:*:*:*:*:*), part of Go's extended imaging library maintained under the golang.org/x namespace. BMP files using indexed color modes contain a palette (a lookup table of colors) and per-pixel indices referencing entries in that palette. The vulnerability arises because the decoder fails to validate whether a pixel's palette index falls within the bounds of the defined palette before dereferencing it. In Go, an out-of-bounds slice or array access causes a runtime panic rather than undefined behavior as in C/C++, resulting in a hard crash of the decoding goroutine. No CWE was assigned in the NVD record; the root cause is consistent with CWE-125 (Out-of-bounds Read) or CWE-129 (Improper Validation of Array Index). The issue is tracked upstream at go.dev/issue/79576 and the fix was submitted via code review at go.dev/cl/781500.

Know when Golang Org X Image Bmp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Go) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Red Hat 6.5 MEDIUM

Primary rating from Vendor (Go).

CVSS VectorVendor: Go

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

3
Patch available
May 29, 2026 - 21:02 EUVD
CVSS changed
May 29, 2026 - 20:22 NVD
5.3 (MEDIUM)
CVE Published
May 29, 2026 - 18:36 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy