Skip to content

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

@neild

Description

@neild

net.mail.ParseAddress constructs a string through repeated concatenation, potentially leading to excessive CPU consumption when parsing addresses with very long comments.

This was fixed in https://go.dev/cl/759940.

This is the same issue (in the same code, no less) as #75680, which was a PRIVATE track security fix. This has already leaked, therefore it is de facto PUBLIC track.

This is CVE-2026-39820.

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions