What’s Vulnerable › Vulnerabilities
CVE-2026-39828: Invoking bypass of certificate restrictions in golang.org/x/crypto/ssh
- Severity: medium (CVSS 6.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-22 · updated 2026-09-11
- Weakness: CWE-295
Description
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 products
- golang.org/x/crypto/ssh: before 0.52.0 — fixed in 0.52.0
- Golang.Org/X/Crypto: before 0.52.0 — fixed in 0.52.0
How to fix
Upgrade to a fixed version: golang.org/x/crypto/ssh 0.52.0; Golang.Org/X/Crypto 0.52.0. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/781621
- https://go.dev/issue/79562
- https://groups.google.com/g/golang-announce/c/a082jnz-LvI
- https://pkg.go.dev/vuln/GO-2026-5014
- https://access.redhat.com/errata/RHSA-2026:26546
- https://access.redhat.com/errata/RHSA-2026:26547
- https://access.redhat.com/errata/RHSA-2026:36105
- https://access.redhat.com/errata/RHSA-2026:36167
- https://access.redhat.com/errata/RHSA-2026:36207
- https://access.redhat.com/errata/RHSA-2026:36319
- https://access.redhat.com/errata/RHSA-2026:36625
- https://access.redhat.com/errata/RHSA-2026:36648
Get alerted when CVE-2026-39828 or the next vulnerability affects your stack