VDB
KO
CRITICAL 9.1

GHSA-f5wc-c3c7-36mc

golang.org/x/crypto/ssh/agent doesn't drop invoking agent constraints when forwarding keys

Details

When adding a key to a remote agent constraint extensions such as restrict-destination-v00@openssh.com were not serialized in the request. Destination restrictions were silently stripped when forwarding keys, allowing unrestricted use of the key on the remote host. The client now serializes all constraint extensions. Additionally, the in-memory keyring returned by NewKeyring() now rejects keys with unsupported constraint extensions instead of silently ignoring them.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / golang.org/x/crypto/ssh/agent
Introduced in: 0 Fixed in: 0.52.0
Fix go get golang.org/x/crypto/ssh/agent@v0.52.0

References