GO-2024-2609

Source
https://pkg.go.dev/vuln/GO-2024-2609
Import Source
https://vuln.go.dev/ID/GO-2024-2609.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2024-2609
Aliases
Published
2024-03-05T22:15:04Z
Modified
2024-10-22T05:29:09.769129Z
Summary
Comments in display names are incorrectly handled in net/mail
Details

The ParseAddressList function incorrectly handles comments (text within parentheses) within display names. Since this is a misalignment with conforming address parsers, it can result in different trust decisions being made by programs using different parsers.

References
Credits
    • Juho Nurminen of Mattermost
    • Slonser (https://github.com/Slonser)

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.21.8
Introduced
1.22.0-0
Fixed
1.22.1

Ecosystem specific

{
    "imports": [
        {
            "path": "net/mail",
            "symbols": [
                "Address.String",
                "AddressParser.Parse",
                "AddressParser.ParseList",
                "Header.AddressList",
                "ParseAddress",
                "ParseAddressList",
                "addrParser.consumeGroupList",
                "addrParser.consumePhrase",
                "isAtext"
            ]
        }
    ]
}