Red Hat VEX
RHVEX-CVE-2025-47913
golang.org/x/crypto/ssh/agent: golang.org/x/crypto/ssh/agent: SSH client panic due to unexpected SSH_AGENT_SUCCESS
Details
A flaw in golang.org/x/crypto/ssh/agent causes the SSH agent client to panic when a peer responds with the generic SSH_AGENT_SUCCESS (0x06) message to requests expecting typed replies (e.g., List, Sign). The unmarshal layer produces an unexpected message type, which the client code does not handle, leading to panic("unreachable") or a nil-pointer dereference. A malicious agent or forwarded connection can exploit this to terminate the client process.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | buildah | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | buildah-tests | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2025-47913
- https://bugzilla.redhat.com/show_bug.cgi?id=2414943
- https://www.cve.org/CVERecord?id=CVE-2025-47913
- https://nvd.nist.gov/vuln/detail/CVE-2025-47913
- https://github.com/advisories/GHSA-hcg3-q754-cr77
- https://go.dev/cl/700295
- https://go.dev/issue/75178
- https://pkg.go.dev/vuln/GO-2025-4116