CVE-2026-39828: Invoking bypass of certificate restrictions in golang.org/x/crypto/ssh
Invoking bypass of certificate restrictions in golang.org/x/crypto/ssh
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/golang.org/x/crypto/sshto a version that resolves this vulnerability.Fixed in 0.52.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.7.1-5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.12.15-8 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.31.0-23 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.9.5-14 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.7.11-7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.62.0-17
Event History
Frequently Asked Questions
What is the severity of CVE-2026-39828?
CVE-2026-39828 has a risk rating of 47, indicating a moderate level of severity.
How do I fix CVE-2026-39828?
To fix CVE-2026-39828, update to the latest version of golang.org/x/crypto/ssh that addresses the issue.
What key issue does CVE-2026-39828 address?
CVE-2026-39828 addresses the issue where permissions in SSH server authentication could be discarded, compromising certificate restrictions.
What is the impact of CVE-2026-39828?
The impact of CVE-2026-39828 is that it may allow unauthorized actions due to lost permissions after a second factor succeeds.
When was CVE-2026-39828 published?
CVE-2026-39828 was published on May 22, 2026.