Skip to main content
← All vulnerabilities
CVE-2026-39832GHSA-F5WC-C3C7-36MCGO-2026-5006

Invoking agent constraints dropped when forwarding keys in golang.org/x/crypto/ssh/agent

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.52.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • golang.org/x/crypto/ssh/agent

    fixed in 0.52.0

  • golang.org/x/cryptoGo

    fixed in 0.52.0

References 5

go.dev

groups.google.com

pkg.go.dev