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

CVE-2026-39835: golang.org/x/crypto/ssh is vulnerable to invoking server panic during CheckHostKey/Authenticate flow

June 25, 2026 (updated July 1, 2026)

SSH servers which use CertChecker as a public key callback without setting IsUserAuthority or IsHostAuthority could be caused to panic by a client presenting a certificate. CertChecker now returns an error instead of panicking when these callbacks are nil.

References

  • access.redhat.com/errata/RHSA-2026:26546
  • access.redhat.com/errata/RHSA-2026:26547
  • access.redhat.com/security/cve/CVE-2026-39835
  • bugzilla.redhat.com/show_bug.cgi?id=2480680
  • github.com/advisories/GHSA-78mq-xcr3-xm33
  • go.dev/cl/781660
  • go.dev/issue/79563
  • groups.google.com/g/golang-announce/c/a082jnz-LvI
  • nvd.nist.gov/vuln/detail/CVE-2026-39835
  • pkg.go.dev/vuln/GO-2026-5015
  • security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39835.json

Code Behaviors & Features

Detect and mitigate CVE-2026-39835 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 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-295: Improper Certificate Validation
  • CWE-476: NULL Pointer Dereference

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Mon, 13 Jul 2026 12:19:56 +0000.