CVE-2026-27145: CWE-407: Inefficient Algorithmic Complexity in Go standard library crypto/x509
CVE-2026-27145 is an inefficient algorithmic complexity vulnerability in the Go standard library's crypto/x509 package. The issue arises because the VerifyHostname method repeatedly calls a function that splits the hostname string for each DNS Subject Alternative Name (SAN) entry, causing quadratic scaling of verification costs with large SAN lists. This overhead occurs even for untrusted certificates since hostname verification happens before certificate chain building. No patch or official remediation guidance is currently available. There are no known exploits in the wild. The vulnerability could lead to performance degradation during hostname verification in TLS certificate validation processes.
AI Analysis
Technical Summary
The vulnerability in Go's crypto/x509 package involves inefficient repeated string splitting in the VerifyHostname method when processing multiple DNS SAN entries. Specifically, the method calls matchHostnames in a loop over all SAN entries, and each call executes strings.Split(host, ".") on the same hostname, resulting in quadratic time complexity relative to the number of SAN entries and hostname label count. This inefficiency impacts the performance of hostname verification even for untrusted certificates, potentially causing excessive CPU usage during TLS certificate validation.
Potential Impact
The impact is primarily performance-related, causing increased CPU usage and verification latency when validating certificates with large DNS SAN lists. This could degrade service responsiveness or resource utilization in applications relying on Go's crypto/x509 for TLS hostname verification. There is no indication of direct security compromise such as code execution or data leakage. No known exploits exist in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or remediation guidance is currently available from the vendor. Users should monitor the Go project advisories for updates. Until a fix is released, consider limiting the size of DNS SAN lists in certificates or implementing application-level controls to mitigate potential performance impacts.
CVE-2026-27145: CWE-407: Inefficient Algorithmic Complexity in Go standard library crypto/x509
Description
CVE-2026-27145 is an inefficient algorithmic complexity vulnerability in the Go standard library's crypto/x509 package. The issue arises because the VerifyHostname method repeatedly calls a function that splits the hostname string for each DNS Subject Alternative Name (SAN) entry, causing quadratic scaling of verification costs with large SAN lists. This overhead occurs even for untrusted certificates since hostname verification happens before certificate chain building. No patch or official remediation guidance is currently available. There are no known exploits in the wild. The vulnerability could lead to performance degradation during hostname verification in TLS certificate validation processes.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Go's crypto/x509 package involves inefficient repeated string splitting in the VerifyHostname method when processing multiple DNS SAN entries. Specifically, the method calls matchHostnames in a loop over all SAN entries, and each call executes strings.Split(host, ".") on the same hostname, resulting in quadratic time complexity relative to the number of SAN entries and hostname label count. This inefficiency impacts the performance of hostname verification even for untrusted certificates, potentially causing excessive CPU usage during TLS certificate validation.
Potential Impact
The impact is primarily performance-related, causing increased CPU usage and verification latency when validating certificates with large DNS SAN lists. This could degrade service responsiveness or resource utilization in applications relying on Go's crypto/x509 for TLS hostname verification. There is no indication of direct security compromise such as code execution or data leakage. No known exploits exist in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or remediation guidance is currently available from the vendor. Users should monitor the Go project advisories for updates. Until a fix is released, consider limiting the size of DNS SAN lists in certificates or implementing application-level controls to mitigate potential performance impacts.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-02-17T19:57:28.435Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
- Gcve Source
- db.gcve.eu
Threat ID: 6a1f872ae29bf47b5044bf1a
Added to database: 6/3/2026, 1:45:14 AM
Last enriched: 6/3/2026, 1:48:39 AM
Last updated: 6/3/2026, 2:52:30 AM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.