Skip to content

net/mail: ParseAddress: quadratic complexity in consumeComment #78566

Description

@neild

Well-crafted inputs reaching ParseAddress, ParseAddressList,
and ParseDate were able to trigger excessive CPU exhaustion
and memory allocations.

This is CVE-2026-39820 and Go issue https://go.dev/issue/78566.


This was a PUBLIC track issue, tracked in http://b/500346169.

Activity

  1. added this to the Go1.27 milestone on Apr 7, 2026
  2. neild commented on Apr 7, 2026

    @neild
    ContributorAuthor

    @gopherbot please open backport issues for this security fix.

  3. gopherbot commented on Apr 7, 2026

    @gopherbot
    Contributor

    Backport issue(s) opened: #78567 (for 1.25), #78568 (for 1.26).

    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. gopherbot commented on Apr 7, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/763558 mentions this issue: [release-branch.go1.25] net/mail: fix quadratic complexity in consumeComment

  5. gopherbot commented on Apr 7, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/763800 mentions this issue: [release-branch.go1.26] net/mail: fix quadratic complexity in consumeComment

  6. added
    BugReportIssues describing a possible bug in the Go implementation.
    on Apr 7, 2026
  7. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Apr 9, 2026
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

    BugReportIssues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.Security

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions