GO-2026-5005

Invoking key constraints not enforced in golang.org/x/crypto/ssh/agent

At a glance

Published
Updated
CVE
CVE-2026-39833
Aliases
GHSA-jppx-rxg9-jmrx

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 packages

PackageVersions
Go · golang.org/x/cryptointroduced 0, fixed 0.52.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database