VDB
Sign up
MEDIUM5.3

GO-2025-4015

Excessive CPU consumption in Reader.ReadResponse in net/textproto

Quick fix

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

go get stdlib@v1.24.8

Details

The Reader.ReadResponse function constructs a response string through repeated string concatenation of lines. When the number of lines in a response is large, 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