Inefficient candidate hostname parsing in crypto/x509

Summary

CVECVE-2026-27145
StatePUBLISHED
AssignerGo
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-06-02 23:16:35 UTC
Updated2026-07-14 12:16:57 UTC
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.

Risk And Classification

Primary CVSS: v3.1 6.5 MEDIUM from ADP

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

EPSS: 0.009390000 probability, percentile 0.567710000 (date 2026-07-13)

Problem Types: CWE-606 | CWE-407: Inefficient Algorithmic Complexity | CWE-606 Unchecked Input for Loop Condition


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED6.5MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
3.1ADPCVSS7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary6.5MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
3.10b0ca135-0b70-47e7-9f44-1890c2a1c46cSecondary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Go Standard Library Crypto/x509 affected 1.25.11 semver Not specified
CNA Go Standard Library Crypto/x509 affected 1.26.0-0 1.26.4 semver Not specified
ADP Red Hat Red Hat Enterprise Linux AppStream V. 10 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux AppStream V. 8 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux AppStream V. 9 Not specified Not specified
ADP Red Hat Red Hat Developer Hub 1.9 Not specified Not specified
ADP Red Hat Red Hat OpenShift Builds 1.7.4 Not specified Not specified
ADP Red Hat Red Hat Trusted Artifact Signer 1.4 Not specified Not specified
ADP Red Hat Assisted Installer For Red Hat OpenShift Container Platform 2 Not specified Not specified
ADP Red Hat Cert-manager Operator For Red Hat OpenShift Not specified Not specified
ADP Red Hat Compliance Operator Not specified Not specified
ADP Red Hat Confidential Compute Attestation Not specified Not specified
ADP Red Hat Deployment Validation Operator Not specified Not specified
ADP Red Hat External Secrets Operator For Red Hat OpenShift Not specified Not specified
ADP Red Hat Fence Agents Remediation Operator Not specified Not specified
ADP Red Hat File Integrity Operator Not specified Not specified
ADP Red Hat Machine Deletion Remediation Operator Not specified Not specified
ADP Red Hat Migration Toolkit For Containers Not specified Not specified
ADP Red Hat Multiarch Tuning Operator Not specified Not specified
ADP Red Hat Multicluster Global Hub Not specified Not specified
ADP Red Hat Network Observability Operator Not specified Not specified
ADP Red Hat Node HealthCheck Operator Not specified Not specified
ADP Red Hat OpenShift API For Data Protection Not specified Not specified
ADP Red Hat OpenShift Lightspeed Not specified Not specified
ADP Red Hat OpenShift Pipelines Not specified Not specified
ADP Red Hat OpenShift Serverless Not specified Not specified
ADP Red Hat OpenShift Service Mesh 3 Not specified Not specified
ADP Red Hat OpenShift Source-to-Image S2I Not specified Not specified
ADP Red Hat Power Monitoring For Red Hat OpenShift Not specified Not specified
ADP Red Hat Red Hat 3scale API Management Platform 2 Not specified Not specified
ADP Red Hat Red Hat Advanced Cluster Management For Kubernetes 2 Not specified Not specified
ADP Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
ADP Red Hat Red Hat Ceph Storage 5 Not specified Not specified
ADP Red Hat Red Hat Ceph Storage 6 Not specified Not specified
ADP Red Hat Red Hat Connectivity Link 1 Not specified Not specified
ADP Red Hat Red Hat Edge Manager 1 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux 10 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux 8 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux 9 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux AI RHEL AI 3 Not specified Not specified
ADP Red Hat Red Hat Hardened Images Not specified Not specified
ADP Red Hat Red Hat Lightspeed For Runtimes Operator Not specified Not specified
ADP Red Hat Red Hat OpenShift AI RHOAI Not specified Not specified
ADP Red Hat Red Hat OpenShift Cluster Manager CLI Not specified Not specified
ADP Red Hat Red Hat OpenShift Container Platform 4 Not specified Not specified
ADP Red Hat Red Hat OpenShift Dev Workspaces Operator Not specified Not specified
ADP Red Hat Red Hat OpenShift On AWS Not specified Not specified
ADP Red Hat Red Hat OpenShift Virtualization 4 Not specified Not specified
ADP Red Hat Red Hat OpenStack Platform 16.2 Not specified Not specified
ADP Red Hat Red Hat OpenStack Platform 17.1 Not specified Not specified
ADP Red Hat Red Hat OpenStack Platform 18.0 Not specified Not specified
ADP Red Hat Red Hat Satellite 6 Not specified Not specified
ADP Red Hat Red Hat Web Terminal Not specified Not specified
ADP Red Hat Security Profiles Operator Not specified Not specified
ADP Red Hat Streams For Apache Kafka 2 Not specified Not specified
ADP Red Hat Streams For Apache Kafka 3 Not specified Not specified
ADP Red Hat Zero Trust Workload Identity Manager Not specified Not specified
ADP Red Hat Zero Trust Workload Identity Manager - Tech Preview Not specified Not specified
ADP Red Hat Cryostat 4 Not specified Not specified
ADP Red Hat Custom Metric Autoscaler Operator For Red Hat Openshift Not specified Not specified
ADP Red Hat Gatekeeper 3 Not specified Not specified
ADP Red Hat Logging Subsystem For Red Hat OpenShift Not specified Not specified
ADP Red Hat Logical Volume Manager Storage Not specified Not specified
ADP Red Hat Migration Toolkit For Applications 8 Not specified Not specified
ADP Red Hat Mirror Registry For Red Hat OpenShift 2 Not specified Not specified
ADP Red Hat Multicluster Engine For Kubernetes Not specified Not specified
ADP Red Hat OpenShift Developer Tools And Services Not specified Not specified
ADP Red Hat OpenShift Service Mesh 2 Not specified Not specified
ADP Red Hat Red Hat Advanced Cluster Security 4 Not specified Not specified
ADP Red Hat Red Hat Ceph Storage 7 Not specified Not specified
ADP Red Hat Red Hat Ceph Storage 8 Not specified Not specified
ADP Red Hat Red Hat Ceph Storage 9 Not specified Not specified
ADP Red Hat Red Hat Openshift Data Foundation 4 Not specified Not specified
ADP Red Hat Red Hat OpenShift Dev Spaces Not specified Not specified
ADP Red Hat Red Hat OpenShift Distributed Tracing 3 Not specified Not specified
ADP Red Hat Red Hat OpenShift For Windows Containers Not specified Not specified
ADP Red Hat Red Hat OpenShift GitOps Not specified Not specified
ADP Red Hat Red Hat Quay 3 Not specified Not specified
ADP Red Hat Red Hat Service Interconnect 2 Not specified Not specified
ADP Red Hat Service Telemetry Framework 1.5 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2026:34357 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:36797 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:35832 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27145.json 0b0ca135-0b70-47e7-9f44-1890c2a1c46c security.access.redhat.com
go.dev/cl/783621 [email protected] go.dev
access.redhat.com/errata/RHSA-2026:39005 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:36317 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
pkg.go.dev/vuln/GO-2026-5037 [email protected] pkg.go.dev
go.dev/issue/79694 [email protected] go.dev
groups.google.com/g/golang-announce/c/tKs3rmcBcKw [email protected] groups.google.com
bugzilla.redhat.com/show_bug.cgi 0b0ca135-0b70-47e7-9f44-1890c2a1c46c bugzilla.redhat.com
access.redhat.com/security/cve/CVE-2026-27145 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:38995 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:36648 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:34359 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:33574 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:29981 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Jakub Ciolek - https://ciolek.dev/ (en)

Additional Advisory Data

SourceTimeEvent
ADP2026-06-02T23:01:08.992ZReported to Red Hat.
ADP2026-06-02T22:01:36.954ZMade public.

Solutions

ADP: RHSA-2026:35832: Red Hat Enterprise Linux AppStream (v. 10)

ADP: RHSA-2026:34357: Red Hat Enterprise Linux AppStream (v. 10)

ADP: RHSA-2026:39005: Red Hat Enterprise Linux AppStream (v. 10)

ADP: RHSA-2026:38995: Red Hat Enterprise Linux AppStream (v. 8)

ADP: RHSA-2026:29981: Red Hat Enterprise Linux AppStream (v. 9)

ADP: RHSA-2026:34359: Red Hat Enterprise Linux AppStream (v. 9)

ADP: RHSA-2026:36317: Red Hat Enterprise Linux AppStream (v. 9)

ADP: RHSA-2026:33574: Red Hat Developer Hub 1.9

ADP: RHSA-2026:36648: Red Hat OpenShift Builds 1.7.4

ADP: RHSA-2026:36797: Red Hat Trusted Artifact Signer 1.4

Workarounds

ADP: 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).

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report