ADVISORIES

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

Important No fix available CVE-2025-47913

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

EcosystemPackageAffected versions
Red Hat:enterprise_linux:8buildah
All versions, no fix yet
Red Hat:enterprise_linux:8buildah-tests
All versions, no fix yet

References