Vulnerability · Published Jun 2, 2026 · Assigned by Go

CVE-2026-27145Inefficient candidate hostname parsing in crypto/x509

Medium 6.5

In plain English

A medium-severity security flaw in crypto/x509 from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.6%top 51.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

(*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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8delve1.26.1-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:10go-fdo-client1.0.0-4.el10_2.5ALSA-2026:46394
AlmaLinux:10go-fdo-server1.0.1-2.el10_2.3ALSA-2026:46395
AlmaLinux:10go-fdo-server-manufacturer1.0.1-2.el10_2.3ALSA-2026:46395
AlmaLinux:10go-fdo-server-owner1.0.1-2.el10_2.3ALSA-2026:46395
AlmaLinux:10go-fdo-server-rendezvous1.0.1-2.el10_2.3ALSA-2026:46395
AlmaLinux:10go-toolset1.26.4-1.el10_2.alma.1ALSA-2026:29980
AlmaLinux:8go-toolset1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9go-toolset1.26.4-1.el9_8ALSA-2026:29981
AlmaLinux:10golang1.26.4-1.el10_2.alma.1ALSA-2026:29980
AlmaLinux:8golang1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang1.26.4-1.el9_8ALSA-2026:29981
AlmaLinux:10golang-bin1.26.4-1.el10_2.alma.1ALSA-2026:29980
AlmaLinux:8golang-bin1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-bin1.26.4-1.el9_8ALSA-2026:29981
AlmaLinux:10golang-docs1.26.4-1.el10_2.alma.1ALSA-2026:29980
AlmaLinux:8golang-docs1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-docs1.26.4-1.el9_8ALSA-2026:29981
AlmaLinux:10golang-misc1.26.4-1.el10_2.alma.1ALSA-2026:29980
AlmaLinux:8golang-misc1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-misc1.26.4-1.el9_8ALSA-2026:29981
AlmaLinux:10golang-race1.26.4-1.el10_2.alma.1ALSA-2026:29980
AlmaLinux:8golang-race1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-race1.26.4-1.el9_8ALSA-2026:29981
AlmaLinux:10golang-src1.26.4-1.el10_2.alma.1ALSA-2026:29980
AlmaLinux:8golang-src1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-src1.26.4-1.el9_8ALSA-2026:29981
AlmaLinux:10golang-tests1.26.4-1.el10_2.alma.1ALSA-2026:29980
AlmaLinux:8golang-tests1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-tests1.26.4-1.el9_8ALSA-2026:29981
AlmaLinux:10ipp-usb0.9.27-7.el10_2.2ALSA-2026:35832
AlmaLinux:10opentelemetry-collector0.152.1-1.el10_2ALSA-2026:34357
AlmaLinux:9opentelemetry-collector0.152.1-1.el9_8ALSA-2026:34359
AlmaLinux:9skopeo2:1.22.2-7.el9_8ALSA-2026:36317
AlmaLinux:9skopeo-tests2:1.22.2-7.el9_8ALSA-2026:36317
AlmaLinux:10yggdrasil0.4.9.2-1.el10_2ALSA-2026:39573
AlmaLinux:10yggdrasil-devel0.4.9.2-1.el10_2ALSA-2026:39573
Debian:12golang-1.19no fix listedDEBIAN-CVE-2026-27145
Debian:13golang-1.24no fix listedDEBIAN-CVE-2026-27145
Debian:14golang-1.261.26.4-1DEBIAN-CVE-2026-27145
Gostdlib1.25.11, 1.26.4GO-2026-5037
Rocky Linux:8delve0:1.26.1-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux:10go-fdo-client0:1.0.0-4.el10_2.5RLSA-2026:46394
Rocky Linux:10go-fdo-server0:1.0.1-2.el10_2.3RLSA-2026:46395
Rocky Linux:8golang0:1.26.5-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux:10golang-github-openprinting-ipp-usb0:0.9.27-7.el10_2.2RLSA-2026:35832
Rocky Linux:10opentelemetry-collector0:0.152.1-1.el10_2RLSA-2026:34357
Rocky Linux:9opentelemetry-collector0:0.152.1-1.el9_8RLSA-2026:34359
Rocky Linux:9skopeo2:1.22.2-7.el9_8RLSA-2026:36317
Rocky Linux:10yggdrasil0:0.4.9.2-1.el10_2RLSA-2026:39573
Ubuntu:22.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-27145
Ubuntu:24.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-27145
Ubuntu:25.10golang-1.24no fix listedUBUNTU-CVE-2026-27145
Ubuntu:26.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-27145
Ubuntu:22.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-27145
Ubuntu:24.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-27145
Ubuntu:25.10golang-1.25no fix listedUBUNTU-CVE-2026-27145
Ubuntu:26.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-27145
Ubuntu:22.04:LTSgolang-1.26no fix listedUBUNTU-CVE-2026-27145
Ubuntu:24.04:LTSgolang-1.26no fix listedUBUNTU-CVE-2026-27145
Ubuntu:26.04:LTSgolang-1.26no fix listedUBUNTU-CVE-2026-27145
Ubuntu:26.10golang-1.26no fix listedUBUNTU-CVE-2026-27145

Affected products (as reported)

VendorProductVersions
Go standard library crypto/x509 0 – before 1.25.111.26.0-0 – before 1.26.4

Weakness: CWE-606 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

References