CVE-2025-61726: The net/url package does not set a limit on the number of query parameters in a query.
High CVSS 7.5
- CVE id
- CVE-2025-61726
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Go Runtimes and servers |
< 1.24.12 >= 1.25.0, < 1.25.6 |
1.24.12, 1.25.6 |
How to fix it
Upgrade Go to the fixed release of the line you run: 1.24.12, 1.25.6.
go version
- Build with the patched Go release (set "toolchain" in go.mod, or the golang image tag) and redeploy: Go programs include the standard library, so they must be rebuilt.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2025-61726 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-61726
- Web: https://go.dev/cl/736712
- Web: https://go.dev/issue/77101
- Web: https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc
- Web: https://pkg.go.dev/vuln/GO-2026-4341
- Web: https://access.redhat.com/errata/RHSA-2026:10096
- Web: https://access.redhat.com/errata/RHSA-2026:10104
- Web: https://access.redhat.com/errata/RHSA-2026:10184
- Web: https://access.redhat.com/errata/RHSA-2026:10225
- Web: https://access.redhat.com/errata/RHSA-2026:10250
- Web: https://access.redhat.com/errata/RHSA-2026:11408
- Web: https://access.redhat.com/errata/RHSA-2026:11414
- Web: https://access.redhat.com/errata/RHSA-2026:11747
- Web: https://access.redhat.com/errata/RHSA-2026:11749
- Web: https://access.redhat.com/errata/RHSA-2026:12028
- Web: https://access.redhat.com/errata/RHSA-2026:12029
- Web: https://access.redhat.com/errata/RHSA-2026:12030
- Web: https://access.redhat.com/errata/RHSA-2026:12031
- Web: https://access.redhat.com/errata/RHSA-2026:12032
- Web: https://access.redhat.com/errata/RHSA-2026:12033
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.