UNKNOWN Go

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

GO-2026-5006 · CVE-2026-39832 · GHSA-f5wc-c3c7-36mc

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes