CVE-2026-39832CRITICALCVSS 9.1

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

Published Jun 25, 2026·Updated Jun 25, 2026

Description

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.

Affected Packages (1)

golang.org/x/crypto/ssh/agentGO
Fixed in 0.52.0

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References

View on NVD Search GitHub Search Google

Get alerted for CVEs like this

Register your stack and get notified within minutes when a matching CVE drops.

Start monitoring free