cve.bz

CVE-2026-27145 go standard library crypto/x509: Unchecked Input for Loop Condition

6.5 mediumEPSS 0.5%Fix available

Medium (6.5) in go standard library crypto/x509. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.25.11, 1.26.4.

On this page
(*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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
EPSS
0.5% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 45th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-606 Unchecked Input for Loop Condition
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • stdlib (Go): fixed in 1.25.11, 1.26.4
  • Debian, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Azure Linux, Alpaquita, BellSoft Hardened Containers: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-27145 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-27145?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-27145?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-27145 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library crypto/x509before 1.25.11
Go standard library crypto/x509from 1.26.0-0 before 1.26.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-5037Gostdlib<1.25.11
>=1.26.0-0 <1.26.4
1.25.11, 1.26.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2026-27145
Debian13golang-1.24no fix listedDEBIAN-CVE-2026-27145
Debian14golang-1.261.26.4-1DEBIAN-CVE-2026-27145
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTSgolang-1.24, golang-1.25, golang-1.26no fix listedUBUNTU-CVE-2026-27145
Ubuntu25.10golang-1.24, golang-1.25no fix listedUBUNTU-CVE-2026-27145
Ubuntu26.10golang-1.26no fix listedUBUNTU-CVE-2026-27145
Red Hatansible_automation_platform:2.5::el8automation-controller-venv-tower0:4.6.31-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8automation-eda-controller, automation-eda-controller-base, automation-eda-controller-base-services and 2 more0:1.1.21-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more0:2.5.10-7.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-aiohttp0:3.14.1-2.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-daphne0:4.2.2-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-pillow0:12.3.0-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-pyasn10:0.6.4-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8receptor, receptorctl, receptor-debuginfo and 1 more0:1.6.7-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el9automation-controller-venv-tower0:4.6.31-1.el9apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el9automation-eda-controller, automation-eda-controller-base, automation-eda-controller-base-services and 2 more0:1.1.21-1.el9apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el9automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more0:2.6.17-2.el9apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el9python3.12-aiohttp0:3.14.1-2.el9apRHSA-2026:50319
32 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.251.25.11-150000.1.41.1SUSE-SU-2026:2326-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.261.26.4-150000.1.15.1SUSE-SU-2026:2327-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.25-openssl1.25.12-150000.1.27.1SUSE-SU-2026:3046-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.26-openssl1.26.5-150000.1.12.1SUSE-SU-2026:3047-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.25-openssl1.25.12-150600.13.21.1SUSE-SU-2026:3151-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.26-openssl1.26.5-150600.13.9.1SUSE-SU-2026:3102-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.251.25.11-160000.1.1SUSE-SU-2026:22155-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.25-openssl1.25.12-160000.1.1SUSE-SU-2026:22638-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.261.26.4-160000.1.1SUSE-SU-2026:22154-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.26-openssl1.26.4-160000.1.1SUSE-SU-2026:22572-1
openSUSELeap 16.0go1.251.25.11-160000.1.1openSUSE-SU-2026:20977-1
openSUSELeap 16.0go1.25-openssl1.25.12-160000.1.1openSUSE-SU-2026:21319-1
openSUSELeap 16.0go1.261.26.4-160000.1.1openSUSE-SU-2026:20976-1
openSUSELeap 16.0go1.26-openssl1.26.4-160000.1.1openSUSE-SU-2026:21254-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSELeap 16.0rclone1.74.4-bp160.1.1openSUSE-SU-2026:21436-1
openSUSETumbleweedgo1.251.25.11-1.1openSUSE-SU-2026:10959-1
openSUSETumbleweedgo1.261.26.4-1.1openSUSE-SU-2026:10960-1
openSUSETumbleweedrclone1.74.3-1.1openSUSE-SU-2026:10975-1
AlmaLinux8delve1.26.1-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux8golang, go-toolset, golang-bin and 5 more1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux9containernetworking-plugins1:1.9.1-2.el9ALSA-2026:97644
AlmaLinux9golang, go-toolset, golang-bin and 5 more1.26.4-1.el9_8ALSA-2026:29981
AlmaLinux9opentelemetry-collector0.152.1-1.el9_8ALSA-2026:34359
AlmaLinux9skopeo, skopeo-tests2:1.22.2-7.el9_8ALSA-2026:36317
AlmaLinux10go-fdo-client1.0.0-4.el10_2.5ALSA-2026:46394
AlmaLinux10go-fdo-server-owner, go-fdo-server-rendezvous, go-fdo-server-manufacturer1.0.1-2.el10_2.3ALSA-2026:46395
AlmaLinux10golang-src, golang-docs, golang-misc and 1 more1.26.4-1.el10_2.alma.1ALSA-2026:29980
AlmaLinux10ipp-usb0.9.27-7.el10_2.2ALSA-2026:35832
AlmaLinux10opentelemetry-collector0.152.1-1.el10_2ALSA-2026:34357
AlmaLinux10yggdrasil, yggdrasil-devel0.4.10-1.el10_3.4ALSA-2026:98617
1 more for AlmaLinux in the JSON.
Rocky Linux8delve0:1.26.1-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux8golang0:1.26.5-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux9containernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.9.1-2.el9RLSA-2026:97644
Rocky Linux9opentelemetry-collector0:0.152.1-1.el9_8RLSA-2026:34359
Rocky Linux9skopeo2:1.22.2-7.el9_8RLSA-2026:36317
Rocky Linux10go-fdo-client0:1.0.0-4.el10_2.5RLSA-2026:46394
Rocky Linux10go-fdo-server0:1.0.1-2.el10_2.3RLSA-2026:46395
Rocky Linux10golang-github-openprinting-ipp-usb0:0.9.27-7.el10_2.2RLSA-2026:35832
Rocky Linux10opentelemetry-collector0:0.152.1-1.el10_2RLSA-2026:34357
Rocky Linux10yggdrasil0:0.4.9.2-1.el10_2RLSA-2026:39573
Rocky Linux10yggdrasil, yggdrasil-devel, yggdrasil-debuginfo and 1 more0:0.4.10-1.el10_3.4RLSA-2026:98617
Azure Linux3golangno fix listedAZL-98601
Azure Linux3golang1.25.11-1AZL-89381
Azure Linux3golang1.26.4-1AZL-89384
Alpaquita23, 25go1.25.11-r0BELL-CVE-2026-27145
Alpaquitastreamgo1.26.4-r0BELL-CVE-2026-27145
BellSoft Hardened Containers23, 25go1.25.11-r0BELL-CVE-2026-27145
BellSoft Hardened Containersstreamgo1.26.4-r0BELL-CVE-2026-27145

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A flaw was found in the Go standard library crypto/x509 package. When verifying a TLS certificate hostname, VerifyHostname processed each DNS Subject Alternative Name (SAN) entry in a loop and repeatedly split the candidate hostname on "." characters. For certificates with a very large DNS SAN list, CPU use could grow quadratically with the number of SAN entries and hostname labels. Because hostname verification runs before the certificate chain is built, this overhead can occur even when the certificate is not trusted.

Red Hat rates this issue as Important. It affects Red Hat products that include the Go standard library crypto/x509 code from an affected Go toolchain version (before Go 1.25.11, or from Go 1.26.0 through Go 1.26.3). Applications and container images built with a fixed Go release (1.25.11 or later, or 1.26.4 or later) are not affected. Community distributions such as Fedora are also affected.

Upstream fix: Go 1.25.11 and Go 1.26.4 (GO-2026-5037).

Red Hat's mitigation

A flaw was found in the Go standard library crypto/x509 package. When verifying a TLS certificate hostname, VerifyHostname processed each DNS Subject Alternative Name (SAN) entry in a loop and repeatedly split the candidate hostname on "." characters. For certificates with a very large DNS SAN list, CPU use could grow quadratically with the number of SAN entries and hostname labels. Because hostname verification runs before the certificate chain is built, this overhead can occur even when the certificate is not trusted.

Red Hat rates this issue as Important. It affects Red Hat products that include the Go standard library crypto/x509 code from an affected Go toolchain version (before Go 1.25.11, or from Go 1.26.0 through Go 1.26.3). Applications and container images built with a fixed Go release (1.25.11 or later, or 1.26.4 or later) are not affected. Community distributions such as Fedora are also affected.

Upstream fix: Go 1.25.11 and Go 1.26.4 (GO-2026-5037).

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8receptor-0:1.6.7-1.el8apFixed 2026-08-04RHSA-2026:50319
Red Hat Ansible Automation Platform 2.5 for RHEL 9receptor-0:1.6.7-1.el9apFixed 2026-08-04RHSA-2026:50319
Red Hat Ansible Automation Platform 2.6 for RHEL 10receptor-0:1.6.6-1.el10apFixed 2026-07-20RHSA-2026:42079
Red Hat Ansible Automation Platform 2.6 for RHEL 9receptor-0:1.6.6-1.el9apFixed 2026-07-20RHSA-2026:42079
Red Hat Ansible Automation Platform 2.7 for RHEL 10receptor-0:1.6.6-1.el10apFixed 2026-07-20RHSA-2026:42080
Red Hat Ansible Automation Platform 2.7 for RHEL 9receptor-0:1.6.6-1.el9apFixed 2026-07-20RHSA-2026:42080
Red Hat Enterprise Linux 10golang-0:1.26.4-1.el10_2Fixed 2026-06-25RHSA-2026:29980
Red Hat Enterprise Linux 10opentelemetry-collector-0:0.152.1-1.el10_2Fixed 2026-07-01RHSA-2026:34357
Red Hat Enterprise Linux 10golang-github-openprinting-ipp-usb-0:0.9.27-7.el10_2.2Fixed 2026-07-06RHSA-2026:35832
Red Hat Enterprise Linux 10rhc-1:0.3.8-6.el10_2Fixed 2026-07-13RHSA-2026:39005
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Affected
Confidential Compute Attestationbuild-of-trustee/trustee-rhel9-operatorNot affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-monitor-rhel9Will not fix
Cryostat 4cryostat/cryostat-storage-rhel9Not affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel9Not affected
Deployment Validation Operatordvo/deployment-validation-rhel8-operatorAffected
ExternalDNS Operatoredo/external-dns-rhel9Affected
ExternalDNS Operatoredo/external-dns-rhel9-operatorAffected
Fence Agents Remediation Operatorworkload-availability/fence-agents-remediation-rhel8-operatorAffected
File Integrity Operatorcompliance/openshift-compliance-operator-bundleNot affected
409 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-27145.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON