GHSA-f5wc-c3c7-36mcCriticalCVSS 9.1

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

Published
June 25, 2026
Last Modified
June 25, 2026

🔗 CVE IDs covered (1)

📋 Description

When adding a key to a remote agent constraint extensions such as [email protected] 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.

🎯 Affected products1

  • go/golang.org/x/crypto/ssh/agent:< 0.52.0

🔗 References (6)