Go Vulnerability Database
GO-2026-5014
Invoking bypass of certificate restrictions in golang.org/x/crypto/ssh
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | golang.org/x/crypto | All versions before 0.52.0 (fixed in 0.52.0) |