VulnWatch by ve1ve2
critical 9.1 EPSS 0.68%

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

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
openssh golang.org/x/crypto

https://osv.dev/vulnerability/GO-2026-5006 ↗

osvgofix-available

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. Affected: Go:golang.org/x/crypto Fixed in: 0.52.0 References: https://go.dev/issue/79435 https://go.dev/cl/778640 https://go.dev/cl/778641 https://groups.google.com/g/golang-announce/c/a082jnz-LvI

Linked vulnerabilities (2)

CVE-2026-39832 critical 9.1 EPSS 0.68% (p53) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

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

CWE: CWE-502, CWE-281Aliases: GHSA-f5wc-c3c7-36mcNVD: Modified

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

Aliases: CVE-2026-39832