Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/crypto/ssh
  4. ›
  5. CVE-2026-39828

CVE-2026-39828: golang.org/x/crypto/ssh vulnerable to invoking bypass of certificate restrictions

June 25, 2026 (updated July 7, 2026)

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.

References

  • access.redhat.com/errata/RHSA-2026:26546
  • access.redhat.com/errata/RHSA-2026:26547
  • access.redhat.com/errata/RHSA-2026:36167
  • access.redhat.com/security/cve/CVE-2026-39828
  • bugzilla.redhat.com/show_bug.cgi?id=2480687
  • github.com/advisories/GHSA-45gg-vh54-h5m9
  • go.dev/cl/781621
  • go.dev/issue/79562
  • groups.google.com/g/golang-announce/c/a082jnz-LvI
  • nvd.nist.gov/vuln/detail/CVE-2026-39828
  • pkg.go.dev/vuln/GO-2026-5014
  • security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39828.json

Code Behaviors & Features

Detect and mitigate CVE-2026-39828 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.52.0

Fixed versions

  • 0.52.0

Solution

Upgrade to version 0.52.0 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-281: Improper Preservation of Permissions
  • CWE-295: Improper Certificate Validation

Source file

go/golang.org/x/crypto/ssh/CVE-2026-39828.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 21 Jul 2026 00:18:18 +0000.