HarborGuard / CVE
Back to search
CRITICALCVE-2026-39832Published Modified CNA Go

CVE-2026-39832: Invoking agent constraints dropped when forwarding keys in golang.org/x/crypto/ssh/agent

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.

Metrics

CVSS v3.1
9.1
Severity
CRITICAL
Fixed in
0.52.0
Affected Products
1

Fix available

0.52.0
Affected packages
  • golang.org/x/crypto / golang.org/x/crypto/ssh/agent
    < 0.52.0 (from 0)
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N