Live threats

All CVEs / Go standard library

CVE-2026-27145Go standard library crypto/x509

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
—
Auth required
No
Published
Jun 2, 2026
Updated
Sep 18, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-606
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

What happens

(*x509.Certificate).VerifyHostname previously called matchHostnames in a loop over all DNS Subject Alternative Name (SAN) entries. This caused strings.Split(host, ".") to execute repeatedly on the same input hostname. With a large DNS SAN list, verification costs scaled quadratically based on the number of SAN entries multiplied by the hostname's label count. Because x509.Verify validates hostnames before building the certificate chain, this overhead occurred even for untrusted certificates.

Original NVD text.

What to do

  1. Apply the vendor's security update for crypto/x509.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go stdlib < 1.25.11 1.25.11 go get stdlib@v1.25.11
Go stdlib ≥ 1.26.0-0 < 1.26.4 1.26.4 go get stdlib@v1.26.4

Per OSV / GitHub Advisories (GO-2026-5037). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: Red Hat (+55), SUSE (+16)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.