Skip to main content
← All vulnerabilities
CVE-2026-27145GO-2026-5037BIT-GOLANG-2026-27145

Inefficient candidate hostname parsing in crypto/x509

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.25.11, 1.26.4
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

(*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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • crypto/x509

    fixed in 1.25.11; From 1.26.0-0 · fixed in 1.26.4

  • stdlibGo

    fixed in 1.25.11; From 1.26.0-0 · fixed in 1.26.4

References 5

go.dev

groups.google.com

pkg.go.dev

GitHub · HORKimhab/CVE-2026-27145