Skip to main content

Go mime package CVE-2026-42504

| EUVDEUVD-2026-34039 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-06-02 Go GHSA-h524-452v-82p9
7.5
CVSS 3.1 · Vendor: Go
Share

Severity by source

Vendor (Go) PRIMARY
7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE
HIGH
qualitative
Red Hat
7.5 HIGH
qualitative

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
High

Lifecycle Timeline

3
Analysis Generated
Jun 03, 2026 - 16:23 vuln.today
CVSS changed
Jun 03, 2026 - 16:22 NVD
7.5 (HIGH)
CVE Published
Jun 02, 2026 - 22:01 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

Decoding a maliciously-crafted MIME header containing many invalid encoded-words can consume excessive CPU.

AnalysisAI

Algorithmic complexity denial of service in the Go standard library's mime package allows remote unauthenticated attackers to consume excessive CPU by submitting MIME headers containing many invalid encoded-words. Affected Go releases include mime versions before 1.25.11 and 1.26.0-0 through versions prior to 1.26.4, with a patch available from upstream Go. EPSS is very low (0.02%, 5th percentile) and there is no public exploit identified at time of analysis, but the network-reachable, no-auth attack surface makes this relevant for any Go service that parses untrusted MIME input.

Technical ContextAI

The vulnerability lives in Go's standard library mime package (cpe:2.3:a:go_standard_library:mime), which implements RFC 2047 encoded-word decoding used in email headers and any HTTP/MIME multipart processing built atop net/mail, net/http, or mime/multipart. CWE-407 (Inefficient Algorithmic Complexity) indicates the decoder's handling of repeated invalid encoded-word tokens scales poorly, so a single header line containing many malformed =?charset?encoding?data?= sequences forces super-linear work during parsing. Because the mime package is transitively used by many Go-based mail servers, webmail gateways, MTAs, SMTP relays, and HTTP services that accept multipart uploads, the blast radius extends well beyond applications that import the package directly.

RemediationAI

Upgrade to a fixed Go toolchain that bundles mime 1.25.11 or 1.26.4 (or later) and rebuild affected binaries - this is the primary fix and is referenced in the Go change at https://go.dev/cl/774481, the tracking issue https://go.dev/issue/79217, the golang-announce notice at https://groups.google.com/g/golang-announce/c/tKs3rmcBcKw, and GO-2026-5038. Until rebuilt binaries are deployed, place CPU and request-time limits on services that parse MIME (per-request CPU budgets, goroutine timeouts via context.WithTimeout around mail.ReadMessage / mime.WordDecoder, and request-size caps on header fields) and front internet-exposed Go mail or HTTP endpoints with a WAF or proxy that rejects oversized or malformed MIME headers; the trade-off is that aggressive header-size limits may break legitimate but unusual mail with long subject lines or many encoded-word continuations.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected

Share

CVE-2026-42504 vulnerability details – vuln.today

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