Go Vulnerability Database
GO-2026-6609
Lack of limit on size of parsed Range headers in net/http
Details
When parsing a Range header containing a large number of small ranges, FileServer(FS), ServeContent, and ServeFile(FS) can consume an excessive amount of CPU.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.26.9 (fixed in 1.26.9) From 1.27.0-0 before 1.27.2 (fixed in 1.27.2) |