What’s Vulnerable › Vulnerabilities

CVE-2026-39833: Invoking key constraints not enforced in golang.org/x/crypto/ssh/agent

Description

The in-memory keyring returned by NewKeyring() silently accepted keys with the ConfirmBeforeUse constraint but never enforced it. The key would sign without any confirmation prompt, with no indication to the caller that the constraint was not in effect. NewKeyring() now returns an error when unsupported constraints are requested.

Affected products

How to fix

Upgrade to a fixed version: golang.org/x/crypto/ssh 0.52.0; Golang.Org/X/Crypto 0.52.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-39833 or the next vulnerability affects your stack