Skip to content

net/http: memory exhaustion in Request.ParseForm (CVE-2025-61726) #77101

Description

@neild

When parsing a URL-encoded form net/http may allocate an unexpected amount of
memory when provided a large number of key-value pairs. This can result in a
denial of service due to memory exhaustion.

Thanks to jub0bs for reporting this issue.

This is CVE-2025-61726 and Go issue https://go.dev/issue/77101.


This is a PRIVATE issue for CVE-2025-61726, tracked in http://b/457464435 and fixed by https://go-internal-review.git.corp.google.com/c/go/+/3020.

/cc @golang/security and @golang/release

Activity

  1. added this to the Go1.26 milestone on Jan 7, 2026
  2. neild commented on Jan 7, 2026

    @neild
    ContributorAuthor

    @gopherbot please open backport issues for this security fix

  3. gopherbot commented on Jan 7, 2026

    @gopherbot
    Contributor

    Backport issue(s) opened: #77107 (for 1.24), #77108 (for 1.25).

    Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.

  4. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Jan 13, 2026
  5. gopherbot commented on Jan 15, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/736723 mentions this issue: [release-branch.go1.25] net/url: add urlmaxqueryparams GODEBUG to limit the number of query parameters

  6. gopherbot commented on Jan 15, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/736702 mentions this issue: [release-branch.go1.24] net/url: add urlmaxqueryparams GODEBUG to limit the number of query parameters

  7. gopherbot commented on Jan 15, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/736707 mentions this issue: [release-branch.go1.26] net/url: add urlmaxqueryparams GODEBUG to limit the number of query parameters

  8. gopherbot commented on Jan 15, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/736712 mentions this issue: net/url: add urlmaxqueryparams GODEBUG to limit the number of query parameters

  9. added 2 commits that reference this issue on Jan 15, 2026
    85c794d
    5405b5c
  10. gopherbot commented on Jan 15, 2026

    @gopherbot
    Contributor

    Closed by merging CL 736707 (commit 5405b5c) to release-branch.go1.26.

  11. added 2 commits that reference this issue on Jan 15, 2026
    afa9b66
    2dcaaa7
  12. changed the title [-]security: fix CVE-2025-61726[/-] [+]net/http: memory exhaustion in Request.ParseForm (CVE-2025-61726)[/+] on Jan 15, 2026
  13. gopherbot commented on Jan 16, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/737040 mentions this issue: doc: fix urlmaxqueryparams typos

  14. added a commit that references this issue on Jan 16, 2026
  15. added a commit that references this issue on Jan 29, 2026
    01b7184
  16. added 2 commits that reference this issue on Mar 19, 2026
    251d342
    958936c
  17. added a commit that references this issue on Jul 22, 2026
    f767756
  18. added a commit that references this issue on Sep 4, 2026
    4c706f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Securityrelease-blockervulncheck or vulndbIssues for the x/vuln or x/vulndb repo

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions