CVE-2025-47913

7.5 HIGH

📋 TL;DR

This vulnerability affects SSH clients that panic and terminate when receiving SSH_AGENT_SUCCESS messages unexpectedly during authentication. It allows denial-of-service attacks against SSH client processes, affecting users of vulnerable Go-based SSH implementations.

💻 Affected Systems

Products:
  • Go crypto/ssh package implementations
Versions: Go versions before 1.24.1 and 1.23.8
Operating Systems: All operating systems running affected Go versions
Default Config Vulnerable: ⚠️ Yes
Notes: Affects any application using Go's crypto/ssh package for SSH client functionality, including custom tools and third-party software.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Critical SSH client processes terminate during authentication, disrupting automated workflows, CI/CD pipelines, and remote administration capabilities.

🟠

Likely Case

SSH client sessions fail unexpectedly, causing temporary service disruption and requiring manual reconnection attempts.

🟢

If Mitigated

With proper network segmentation and monitoring, impact is limited to isolated client failures with quick detection and recovery.

🌐 Internet-Facing: MEDIUM - SSH clients typically initiate outbound connections, but could be targeted if connecting to compromised or malicious servers.
🏢 Internal Only: MEDIUM - Internal SSH connections could be disrupted if internal servers are compromised or misconfigured.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires the client to connect to a malicious or compromised SSH server that sends unexpected SSH_AGENT_SUCCESS messages.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Go 1.24.1 or Go 1.23.8

Vendor Advisory: https://go.dev/cl/700295

Restart Required: Yes

Instructions:

1. Update Go to version 1.24.1 or 1.23.8. 2. Recompile affected applications. 3. Restart services using the updated binaries.

🔧 Temporary Workarounds

Disable SSH agent forwarding

all

Prevents SSH_AGENT_SUCCESS messages by disabling agent forwarding

ssh -o ForwardAgent=no user@host

Use alternative SSH implementations

all

Temporarily use OpenSSH or other non-Go SSH clients

🧯 If You Can't Patch

  • Implement network segmentation to restrict SSH connections to trusted servers only
  • Monitor for unexpected SSH client terminations and implement automatic restart mechanisms

🔍 How to Verify

Check if Vulnerable:

Check Go version with 'go version' and verify if below 1.24.1 or 1.23.8

Check Version:

go version

Verify Fix Applied:

Confirm Go version is 1.24.1 or higher, or 1.23.8 or higher, and applications have been recompiled

📡 Detection & Monitoring

Log Indicators:

  • Unexpected SSH client termination
  • Panic messages containing 'SSH_AGENT_SUCCESS'
  • Authentication failures followed by process exit

Network Indicators:

  • SSH connections that terminate immediately after authentication attempt
  • Unusual SSH_AGENT_SUCCESS messages from servers

SIEM Query:

process.name:"ssh" AND event.action:"terminated" AND error.message:"panic"

🔗 References

📤 Share & Export