CVE-2026-39832

CRITICAL

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

Title source: cna
STIX 2.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.

Scores

CVSS v3 9.1
EPSS 0.0033
EPSS Percentile 24.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-502
Status published
Products (2)
golang/crypto < 0.52.0
golang.org/x/crypto/golang.org/x/crypto/ssh/agent < 0.52.0
Published May 22, 2026
Tracked Since May 22, 2026