CVE-2026-39828

GHSA-45gg-vh54-h5m9 · GO-2026-5014 · published 22 May 2026 · updated 14 Nov 2026

Invoking bypass of certificate restrictions in golang.org/x/crypto/ssh

6.3MediumCVSS 6.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 0.52.0 and golang.org/x/crypto 0.52.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
golang.org/x/crypto<0.52.00.52.0
go: golang.org/x/crypto<0.52.00.52.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in golang.org/x/crypto (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-39828 severity on Zeptric[![CVE-2026-39828](https://zeptric.io/badge/cve/CVE-2026-39828.svg)](https://zeptric.io/cve/CVE-2026-39828)