Skip to main content
EPSS 0.8%top 46%

CVE-2026-42499: CWE-407: Inefficient Algorithmic Complexity in Go standard library net/mail

0
High
VulnerabilityCVE-2026-42499cvecve-2026-42499cwe-407
Published: 05/07/2026 (05/07/2026, 19:41:18 UTC)
Source: CVE Database V5
Vendor/Project: Go standard library
Product: net/mail

Description

Pathological inputs could cause DoS through consumePhrase when parsing an email address according to RFC 5322.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

Go standard library

net/mail

Affected versions
>=0 <1.25.10>=1.26.0-0 <1.26.3
net/mail
pkg:golang/net/mail
Affected versions
=0=1.26.0-0
net/mail
pkg:golang/net/mail
Affected versions
>=0 <1.25.10>=1.26.0-0 <1.26.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/15/2026, 14:23:17 UTC

Technical Analysis

The vulnerability in the net/mail package of the Go standard library is caused by quadratic string concatenation in the consumePhrase function when parsing pathological email addresses. This inefficient algorithmic complexity can be exploited remotely by sending crafted email addresses, resulting in excessive resource consumption and denial of service in Go applications that use this library for email parsing. The issue is tracked under CWE-407 (Inefficient Algorithmic Complexity) and CWE-1046 (Creation of Immutable Text Using String Concatenation). Red Hat's advisory confirms the impact and states that no suitable mitigation or fix is currently available that meets their criteria for ease of use, deployment, and stability. The vulnerability affects specific Go versions including 1.26.0-0 and 0 as stated. There are no known exploits in the wild at this time.

Potential Impact

A remote attacker can cause a denial of service by triggering excessive resource consumption in Go applications that parse email addresses using the vulnerable net/mail package. This leads to application unavailability due to inefficient handling of pathological inputs. There is no impact on confidentiality or integrity, only availability is affected.

Mitigation Recommendations

Currently, no official fix or mitigation meeting Red Hat's criteria for ease of use, deployment, applicability, or stability is available. Users are advised to monitor vendor advisories for updates. Upgrading to a fixed version when available is recommended once a patch is released. Until then, consider limiting exposure of affected functionality to untrusted inputs if possible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Go
Date Reserved
2026-04-28T00:21:12.791Z
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-42499","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33120","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33123","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33142","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33150","vendor":"Red Hat"}]

Threat ID: 69fcf0c1cbff5d86102bd5e3

Added to database: 05/07/2026, 20:06:25 UTC

Last enriched: 08/15/2026, 14:23:17 UTC

Last updated: 09/12/2026, 10:01:31 UTC

Views: 225

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses