Skip to content

net/mail: quadratic string concatenation in consumePhrase #78987

Description

@thatnealpatel

Pathological inputs could cause DoS through consumePhrase
when parsing an email address according to RFC 5322.

This is CVE-2026-42499 and Go issue https://go.dev/issue/78987.


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

Activity

  1. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    BugReportIssues describing a possible bug in the Go implementation.
    on Apr 28, 2026
  2. gabyhelp commented on Apr 28, 2026

    @gabyhelp
  3. gopherbot commented on Apr 28, 2026

    @gopherbot
  4. gopherbot commented on Apr 28, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/771520 mentions this issue: net/mail: fix quadratic consumePhrase behavior

  5. unpinned this issue on Apr 28, 2026
  6. nicholashusin commented on Apr 28, 2026

    @nicholashusin
    Member

    @gopherbot please open backport issues for this security fix

  7. gopherbot commented on Apr 28, 2026

    @gopherbot
    Contributor

    Backport issue(s) opened: #79003 (for 1.25), #79004 (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.

  8. gopherbot commented on Apr 29, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/772121 mentions this issue: [release-branch.go1.26] net/mail: fix quadratic consumePhrase behavior

  9. gopherbot commented on Apr 29, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/772120 mentions this issue: [release-branch.go1.25] net/mail: fix quadratic consumePhrase behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions