CVE-2026-27145
Inefficient candidate hostname parsing in crypto/x509
CVSS Score
6.5
EPSS Score
0.0%
EPSS Percentile
0th
(*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.
| Vendor | go standard library |
| Product | crypto/x509 |
| Published | Jun 2, 2026 |
| Last Updated | Jun 4, 2026 |
Stay Ahead of the Next One
Get instant alerts for go standard library crypto/x509
Be the first to know when new medium vulnerabilities affecting go standard library crypto/x509 are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
Go standard library / crypto/x509
0 < 1.25.11 1.26.0-0 < 1.26.4
References
Credits
Jakub Ciolek - https://ciolek.dev/