MEDIUM 6.3
GHSA-45gg-vh54-h5m9
golang.org/x/crypto/ssh vulnerable to invoking bypass of certificate restrictions
Details
When an SSH server authentication callback returned PartialSuccessError with non-nil Permissions, those permissions were silently discarded, potentially dropping certificate restrictions such as force-command after a second factor succeeded. Returning non-nil Permissions with PartialSuccessError now results in a connection error.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go / golang.org/x/crypto/ssh
Introduced in:
0 Fixed in: 0.52.0 Fix
go get golang.org/x/crypto/ssh@v0.52.0