What’s Vulnerable › Vulnerabilities
CVE-2025-61726: Memory exhaustion in query parameter parsing in net/url
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-01-28 · updated 2026-09-17
- Weakness: CWE-770
Description
The net/url package does not set a limit on the number of query parameters in a query. While the maximum size of query parameters in URLs is generally limited by the maximum request header size, the net/http.Request.ParseForm method can parse large URL-encoded forms. Parsing a large form containing many unique query parameters can cause excessive memory consumption.
Affected products
- Go: before 1.24.12; from 1.25.0 before 1.25.6 — fixed in 1.24.12, 1.25.6
How to fix
Upgrade to a fixed version: Go 1.24.12, 1.25.6. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/736712
- https://go.dev/issue/77101
- https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc
- https://pkg.go.dev/vuln/GO-2026-4341
- https://access.redhat.com/errata/RHSA-2026:10096
- https://access.redhat.com/errata/RHSA-2026:10104
- https://access.redhat.com/errata/RHSA-2026:10184
- https://access.redhat.com/errata/RHSA-2026:10225
- https://access.redhat.com/errata/RHSA-2026:10250
- https://access.redhat.com/errata/RHSA-2026:11408
- https://access.redhat.com/errata/RHSA-2026:11414
- https://access.redhat.com/errata/RHSA-2026:11747
Get alerted when CVE-2025-61726 or the next vulnerability affects your stack