Skip to main content

Go x/crypto EUVDEUVD-2026-31402

| CVE-2026-46598 MEDIUM
Improper Validation of Array Index (CWE-129)
2026-05-22 Go GHSA-9m57-25v3-79x9
5.3
CVSS 3.1 · Vendor: Go
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed SSH agent socket or listener
  2. Delivery
    Craft malformed ed25519 wire-format key bytes
  3. Exploit
    Submit AddIdentity protocol message to agent
  4. Execution
    Trigger unsafe type cast in ssh/agent parser
  5. Persist
    Invoke key operation to force runtime panic
  6. Impact
    SSH agent process crashes (DoS)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Array index validation
Exploitation Conditions

Exploitation requires that the target application imports and actively uses the golang.org/x/crypto/ssh/agent package and that it processes SSH agent protocol messages - specifically key addition operations such as AddIdentity - where the key type is ed25519 and the caller can supply arbitrary wire-format byte content. CVSS PR:N/UI:N confirms no authentication or user interaction is needed from the network layer, but practical exposure is gated on whether the SSH agent socket or listener accepts connections from untrusted sources. Exploitation is limited by the following: applications that do not expose ssh/agent functionality to external callers are not affected; agents restricted to localhost with tight UNIX socket permissions require local access or prior code execution to reach; and only the agent process crashes (SSVC Technical Impact: partial), not the underlying operating system. Running Go version and whether the module has been updated to 0.52.0 are the decisive limiting factors for patched environments.

Impact

The CVSS 5.3 Medium score reflects an entirely network-reachable (AV:N), low-complexity (AC:L), unauthenticated (PR:N/UI:N) attack path, but the impact is limited to low availability (A:L) with no confidentiality or integrity impact, consistent with a targeted process crash rather than remote code execution or data leakage. EPSS at 0.02% in the 5th percentile signals near-negligible exploitation probability by the broader threat community, corroborating the SSVC assessment of Exploitation: none. However, SSVC flags the attack as Automatable: yes, meaning an adversary could craft a reliable, scripted attack without manual interaction - this elevates operational urgency for internet-exposed SSH agent deployments. SSVC Technical Impact is Partial, meaning only the agent process is affected, not the underlying host. The 'Information Disclosure' tag in the source intelligence appears inconsistent with the CVSS impact vector (C:N/I:N/A:L), which shows no confidentiality impact; this discrepancy should be confirmed with the vendor. Overall, this is a moderate-priority issue: real-world risk is meaningful only for services that expose the ssh/agent protocol to untrusted callers, but the low EPSS and absence of KEV or POC suggest no urgency beyond standard patch cycle.

Exploit ScenarioDerived

An attacker with network or local access to an SSH agent socket (for example, one exposed via agent forwarding or a misconfigured TCP listener) sends an AddIdentity or equivalent agent protocol message whose ed25519 private key field contains malformed wire bytes with an incorrect length or structure. The ssh/agent package casts these bytes directly into an ed25519.PrivateKey object, and when the application subsequently attempts to use that key (e.g., for a signing operation), the Go runtime panics and terminates the agent process. No public proof-of-concept code has been identified at time of analysis, but the automatable nature of the attack (SSVC: Automatable yes) means a reliable exploit is technically straightforward to construct.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 28, 2026

Panic-induced denial of service in the golang.org/x/crypto/ssh/agent package allows remote unauthenticated attackers to crash processes by submitting specially crafted SSH agent protocol messages containing malformed wire-format bytes that are unsafely cast into an ed25519.PrivateKey without sufficient validation. All versions of golang.org/x/crypto/ssh/agent prior to 0.52.0 are affected. No public exploit exists at time of analysis (EPSS 0.02%), though the SSVC framework flags the attack as automatable, and a vendor patch is available.

RemediationAI

The primary fix is to upgrade golang.org/x/crypto to version 0.52.0 or later, which incorporates the upstream patch at https://go.dev/cl/781360. The issue tracker entry is at https://go.dev/issue/79596, and the Go vulnerability database entry at https://pkg.go.dev/vuln/GO-2026-5033 provides module-level guidance for running 'go get golang.org/x/crypto@v0.52.0' and rebuilding affected binaries. If immediate upgrade is not possible, a compensating control is to restrict access to the SSH agent socket to trusted local processes only (e.g., via filesystem permissions on the UNIX domain socket or network ACLs for TCP-exposed agents), preventing untrusted callers from submitting crafted key material. This workaround does not eliminate the vulnerability but reduces the attack surface to already-authenticated or locally privileged callers; its trade-off is potential disruption to legitimate multi-user agent forwarding scenarios.

Affected VersionsENISA

golang.org/x/crypto/ssh/agent 0 <0.52.0

Affected Packages

go golang.org/x/crypto fix: 0.52.0
go golang.org/x/crypto/ssh/agent fix: 0.52.0
euvd golang_org_x_crypto_ssh_agent fix: 0.52.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the ssh/agent sub-package within Go's extended cryptography library (golang.org/x/crypto), CPE cpe:2.3:a:golang.org/x/crypto:golang.org/x/crypto/ssh/agent:*:*:*:*:*:*:*:*. The SSH agent protocol transmits private key material in a defined wire-byte format; ed25519 private keys have strict length requirements (64 bytes for the private seed and public key combined). CWE-129 (Improper Validation of Array Index) indicates the root cause is insufficient bounds and structural validation before casting raw byte slices into a typed ed25519.PrivateKey. Rather than parsing and verifying the byte slice length and content before constructing the key object, the code performs a direct type cast, allowing malformed inputs to produce an internally inconsistent key object whose subsequent use triggers a Go runtime panic.

Know when Golang Org X Crypto Ssh Agent gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Go) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
SUSE MEDIUM
Red Hat 5.3 MEDIUM

Primary rating from Vendor (Go).

CVSS VectorVendor: Go

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

Lifecycle Timeline

3
CVSS changed
May 28, 2026 - 14:37 NVD
5.3 (None) 5.3 (MEDIUM)
Patch available
May 22, 2026 - 04:31 EUVD
CVE Published
May 22, 2026 - 02:31 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

For certain crafted inputs, a 'ed25519.PrivateKey' was created by casting malformed wire bytes, leading to a panic when used.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor CIRCL VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Leap 16.0 Fixed
openSUSE Tumbleweed Fixed
SLES15-SP6-CHOST-BYOS-GCE Fixed
SLES15-SP7-CHOST-BYOS-GCE Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy