CVSS Score: 6.3 Published: 2026-06-25 Full Report: https://cvereports.com/reports/CVE-2026-39828
A critical security bypass vulnerability was discovered in the Go SSH server implementation within the golang.org/x/crypto/ssh package. When an SSH server authentication callback returned a PartialSuccessError alongside non-nil Permissions, the server silently discarded these permissions before the subsequent authentication step. Consequently, once the user completed the second-factor authentication, the session-level restrictions were dropped, granting the client unauthorized capabilities.
A session state vulnerability in Go's SSH server package allows clients to bypass certificate restrictions (such as forced commands or client source IP bounds) during multi-factor authentication, resulting in unauthorized unrestricted access.
- CWE ID: CWE-863 (Primary), CWE-295
- Attack Vector: Network
- CVSS v3.1: 6.3
- EPSS Score: 0.00175 (7.12% percentile)
- Impact: Authorization Bypass / Privilege Escalation
- Exploit Status: None (No active public exploits)
- KEV Status: Not listed
- Custom SSH servers built with golang.org/x/crypto/ssh
- Go-based SSH portals and jump servers
- Go-based bastion hosts and network gateway controls
- golang.org/x/crypto: < v0.52.0 (Fixed in:
v0.52.0)
- Upgrade golang.org/x/crypto module to version v0.52.0 or newer
- Modify custom SSH server authentication callbacks to return nil permissions with PartialSuccessError
- Enforce intermediate verification checks in custom Go SSH connection loops
Remediation Steps:
- Run 'go get golang.org/x/crypto@v0.52.0' in the project directory
- Execute 'go mod tidy' to update go.sum and dependencies
- Verify that the project compiles and run existing SSH unit tests
- Review custom 'VerifiedPublicKeyCallback' or 'PublicKeyCallback' structures in custom SSH servers to ensure they return nil permissions during partial success
- Deploy the rebuilt SSH server binary to staging and production environments
- Go Issue Tracker Thread #79562
- Gerrit Code Review / Code Patch
- Go Vulnerability Advisory GO-2026-5014
- Golang Announce Mailing List
Generated by CVEReports - Automated Vulnerability Intelligence