Skip to content
Heist/ feed
Back to feed
UnratedFix available

Quadratic string concatentation in consumeComment in net/mail

Type: advisorySources: OSV

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

Products
stdlib
Affected versions
Not specified
Fixed versions
1.25.10, 1.26.3
CVEs
CVE-2026-39820
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 03:50 UTC · Revision 1

Source evidence

Quadratic string concatentation in consumeComment in net/mail

core-osv · Original source

Published 7 May 2026, 19:21 UTC

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

osv:GO-2026-4986

stdlib

Fixed versions: 1.25.10, 1.26.3

Complete source record
{
  "id": "17ec4038e882537ad6bb6f7ff390fae42d75b61ec8e80977a9a86b20a1a13936",
  "url": "https://osv.dev/vulnerability/GO-2026-4986",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Quadratic string concatentation in consumeComment in net/mail",
    "summary": "Well-crafted inputs reaching ParseAddress, ParseAddressList, and ParseDate were able to trigger excessive CPU exhaustion and memory allocations.",
    "evidence": "osv:GO-2026-4986",
    "products": [
      {
        "name": {
          "value": "stdlib",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.25.10",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "1.26.3",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "GO-2026-4986",
      "aliases": [
        "BIT-golang-2026-39820",
        "CVE-2026-39820",
        "GO-2026-4986"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.25.10"
                },
                {
                  "introduced": "1.26.0-0"
                },
                {
                  "fixed": "1.26.3"
                }
              ]
            }
          ],
          "package": {
            "name": "stdlib",
            "purl": "pkg:golang/stdlib",
            "ecosystem": "Go"
          },
          "database_specific": {
            "source": "https://vuln.go.dev/ID/GO-2026-4986.json"
          },
          "ecosystem_specific": {
            "imports": [
              {
                "path": "net/mail",
                "symbols": [
                  "AddressParser.Parse",
                  "AddressParser.ParseList",
                  "Header.AddressList",
                  "Header.Date",
                  "ParseAddress",
                  "ParseAddressList",
                  "ParseDate",
                  "addrParser.consumeComment"
                ]
              }
            ]
          }
        }
      ],
      "modified": "2026-10-07T10:41:45.865352723Z",
      "provider": "osv",
      "references": [
        "https://go.dev/issue/78566",
        "https://go.dev/cl/759940",
        "https://groups.google.com/g/golang-announce/c/qcCIEXso47M"
      ],
      "provider_metadata": {
        "url": "https://pkg.go.dev/vuln/GO-2026-4986",
        "review_status": "REVIEWED"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-39820",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 94939,
  "published_at": "2026-05-07T19:21:40+00:00"
}