Go Vulnerability Database
GO-2025-4015
Excessive CPU consumption in Reader.ReadResponse in net/textproto
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.24.8 (fixed in 1.24.8) From 1.25.0 before 1.25.2 (fixed in 1.25.2) |