GO-2025-4006

Excessive CPU consumption in ParseAddress in net/mail

At a glance

Published
Updated
CVE
CVE-2025-61725
Aliases
BIT-golang-2025-61725

Description

The ParseAddress function constructs domain-literal address components through repeated string concatenation. When parsing large domain-literal components, this can cause excessive CPU consumption.

Affected packages

PackageVersions
Go · stdlibintroduced 0, fixed 1.24.8, introduced 1.25.0, fixed 1.25.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database