CVE-2026-27145

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.

Affected Software

VendorProductVersion RangeStatus
Go standard librarycrypto/x5090 < 1.25.11affected
Go standard librarycrypto/x5091.26.0-0 < 1.26.4affected

Weaknesses

  • CWE-407: Inefficient Algorithmic Complexity

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

crypto/x509: golang: golang crypto/x509: Denial of Service via excessive processing of DNS SAN entries

Additional References

References