Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-27138: CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input in Go standard library crypto/x509

0
Medium
VulnerabilityCVE-2026-27138cvecve-2026-27138cwe-1285
Published: Fri Mar 06 2026 (03/06/2026, 21:28:14 UTC)
Source: CVE Database V5
Vendor/Project: Go standard library
Product: crypto/x509

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/14/2026, 19:40:59 UTC

Technical Analysis

CVE-2026-27138 is a vulnerability identified in the Go programming language's standard library, specifically within the crypto/x509 package responsible for X.509 certificate chain verification. The flaw arises from improper validation of specified indices or offsets when processing certificate chains that contain a certificate with an empty DNS name combined with another certificate that has excluded name constraints. This condition triggers a panic in the certificate verification logic, causing the application to crash. The vulnerability is classified under CWE-1285, which relates to improper validation of specified index, position, or offset in input. The panic leads to denial of service (DoS) by crashing programs that either directly verify X.509 certificate chains or indirectly rely on TLS connections that perform such verification. The CVSS v3.1 base score is 5.9 (medium severity), reflecting a network attack vector with high attack complexity, no privileges required, no user interaction, and impact limited to availability. The vulnerability affects Go version 1.26.0-0, and no patches or exploits are currently reported. This issue is critical for applications using Go's crypto/x509 for TLS or certificate validation, as it can cause unexpected crashes and service interruptions.

Potential Impact

The primary impact of CVE-2026-27138 is denial of service due to application crashes during certificate verification. This can disrupt services that rely on Go's crypto/x509 package for TLS connections or certificate validation, including web servers, API endpoints, microservices, and other networked applications. While confidentiality and integrity remain unaffected, availability is compromised, potentially leading to downtime, degraded user experience, and operational interruptions. Organizations with high availability requirements or those operating critical infrastructure using Go are at risk of service outages. The vulnerability could be exploited remotely without authentication or user interaction, but the high attack complexity reduces the likelihood of widespread exploitation. Nonetheless, targeted attacks or malformed certificate chains could trigger crashes, impacting business continuity and trust in secure communications.

Mitigation Recommendations

To mitigate CVE-2026-27138, organizations should upgrade to a fixed version of the Go standard library once available, as this is the most effective solution. In the interim, developers should audit their applications to identify where crypto/x509 certificate verification is performed and implement defensive coding practices such as validating certificate chains before passing them to the library or catching panics to prevent application crashes. Employing circuit breakers or fallback mechanisms in TLS-dependent services can reduce the impact of unexpected crashes. Monitoring logs for panics related to certificate verification can help detect attempted exploitation. Additionally, restricting the acceptance of certificates with empty DNS names or excluded name constraints through policy or custom validation logic can reduce exposure. Network-level protections such as filtering suspicious certificate chains or limiting exposure of vulnerable services may also help mitigate risk until patches are applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Go
Date Reserved
2026-02-17T19:57:28.435Z
Cvss Version
null
State
PUBLISHED

Threat ID: 69ab4b1fc48b3f10ffddeb0d

Added to database: 3/6/2026, 9:46:07 PM

Last enriched: 3/14/2026, 7:40:59 PM

Last updated: 4/20/2026, 7:21:18 PM

Views: 94

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses