VDB
Sign up
HIGH7.5

GO-2025-4006

Excessive CPU consumption in ParseAddress in net/mail

Quick fix

GO-2025-4006 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.24.8

Details

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

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.24.8
Fixgo get stdlib@v1.24.8

References