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

CVE-2026-39831: golang.org/x/crypto/ssh: FIDO/U2F security key physical presence check can be bypassed

June 25, 2026

The Verify() method for FIDO/U2F security key types (sk-ecdsa-sha2-nistp256@openssh.com, sk-ssh-ed25519@openssh.com) did not check the User Presence flag. Signatures generated without physical touch were accepted, allowing unattended use of a hardware security key. To restore the previous behavior, return a “no-touch-required” extension in Permissions.Extensions from PublicKeyCallback.

References

  • github.com/advisories/GHSA-89gr-r52h-f8rx
  • go.dev/cl/781662
  • go.dev/issue/79566
  • groups.google.com/g/golang-announce/c/a082jnz-LvI
  • nvd.nist.gov/vuln/detail/CVE-2026-39831
  • pkg.go.dev/vuln/GO-2026-5019

Code Behaviors & Features

Detect and mitigate CVE-2026-39831 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 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 19 Jul 2026 12:18:07 +0000.