CVE-2026-27138

Panic in name constraint checking for malformed certificates in crypto/x509

Published Mar 6, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
Certificate verification can panic when a certificate in the chain has an empty DNS name and another certificate in the chain has excluded name constraints. This can crash programs that are either directly verifying X.509 certificate chains, or those that use TLS.

Analysis

AI-generated

Technical impact

Certificate verification panics when a chain contains a certificate with an empty DNS name and another certificate that has name constraints excluding that name. The panic aborts the verification routine and causes the program to terminate, producing a denial of service. Programs that directly verify X.509 chains or those that use TLS will crash. The weakness originates from unsafe error handling during name constraint checking and is identified as CWE‑295.

Affected Systems

The affected component is the Go standard library package crypto/x509, which is used by all Go applications that validate certificates or establish TLS connections. Any Go program built with an unpatched standard library version is susceptible. The specific Go release numbers that contain the vulnerability are not listed in the input; the issue is documented by the Go team and fixed in later releases (see the referenced issue links).

Risk and Exploitability

With a CVSS score of 5.9 the vulnerability is of moderate severity and an EPSS score of less than 1 % indicates a very low probability of exploitation. It is not listed in the CISA KEV catalog. The most likely attack vector is remote, wherein an attacker supplies a crafted certificate chain—such as during an HTTPS handshake—to a server or client that performs TLS handshakes. The attacker must control the certificate chain; no privileged escalation is required, but the induced crash would deny service to users of the affected application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Go toolchain to the latest release that contains the crypto/x509 patch (consult the Go issue tracker for the specific release).
  • Rebuild all Go binaries that depend on the standard library to ensure they link against the updated package and redeploy the binaries to the target hosts.
  • As a temporary measure, configure TLS connections to reject certificates with empty DNS names or use a third‑party library that performs stricter name constraint validation until the Go library fix is deployed.

Generated by OpenCVE AI on April 16, 2026 at 11:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Golang
Golang go
CPEs cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*
Vendors & Products Golang
Golang go
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library crypto Tls
Vendors & Products Go Standard Library
Go Standard Library crypto Tls
Type Values Removed Values Added
Description Certificate verification can panic when a certificate in the chain has an empty DNS name and another certificate in the chain has excluded name constraints. This can crash programs that are either directly verifying X.509 certificate chains, or those that use TLS.
Title Panic in name constraint checking for malformed certificates in crypto/x509
References
Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Mar 10, 2026, 1:35 PM
Reserved
Feb 17, 2026, 7:57 PM
Status
Analyzed
Published
Mar 6, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:26 AM
Severity
Low
Public date
Mar 6, 2026, 9:28 PM