VDB
KO
CRITICAL 9.1

GHSA-jppx-rxg9-jmrx

golang.org/x/crypto/ssh/agent doesn't enforce invoking key constraints

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / golang.org/x/crypto/ssh/agent
Introduced in: 0 Fixed in: 0.52.0
Fix go get golang.org/x/crypto/ssh/agent@v0.52.0

References