CVE-2026-39831

Invoking bypass of FIDO/U2F security keys physical interaction in golang.org/x/crypto/ssh

Published May 22, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Verify() for FIDO and U2F keys failed to enforce the user presence flag, allowing signatures to be generated without a physical touch. This is a CWE‑862: Unchecked Control Flow - Missing User Presence Verification weakness, meaning the software does not confirm that the user physically interacted with the security key before accepting the signature.

Affected Systems

The affected product is golang.org/x/crypto/ssh, specifically its handling of sk-ecdsa-sha2-nistp256 and sk-ssh-ed25519 keys. Any Go application or service that uses this library to authenticate SSH connections with FIDO/U2F devices may be impacted. No specific version range is provided, so any version prior to an update that restores the user presence check is potentially vulnerable.

Risk and Exploitability

Because the defect resides in the cryptographic verification routine, an attacker can exploit it without needing privileged local access, simply by using the key in a context where the library verifies authentication. The EPSS score is < 1%, indicating a low probability of exploitation in observed traffic, yet the CVSS Score of 9.1 reflects a high consequence. The vulnerability is not listed in CISA KEV, so there is no active exploitation. The likely attack vector is remote SSH authentication, where an attacker supplies a signature from a hardware security key without the FIDO/U2F user‑presence flag being set. The severity remains high due to the potential to subvert strong authentication.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade golang.org/x/crypto/ssh to a release that restores the user presence check.
  • If an update is not yet available, modify the PublicKeyCallback to return Permissions.Extensions that include the no-touch-required flag, thereby re‑enforcing physical interaction.
  • Remove or disable the use of FIDO/U2F keys in environments where user presence cannot be guaranteed, and consider alternative authentication methods.

Generated by OpenCVE AI on June 2, 2026 at 19:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-89gr-r52h-f8rx golang.org/x/crypto: FIDO/U2F security key physical presence check can be bypassed
Ubuntu USN Ubuntu USN USN-8447-3 Google Guest Agent vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-287
Type Values Removed Values Added
First Time appeared Golang crypto
Weaknesses CWE-862
CPEs cpe:2.3:a:golang:crypto:*:*:*:*:*:go:*:*
Vendors & Products Golang crypto
Type Values Removed Values Added
Weaknesses CWE-287
Type Values Removed Values Added
Weaknesses CWE-296
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Golang
Golang ssh
Vendors & Products Golang
Golang ssh
Type Values Removed Values Added
Weaknesses CWE-296
Type Values Removed Values Added
Description 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.
Title Invoking bypass of FIDO/U2F security keys physical interaction in golang.org/x/crypto/ssh
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
May 22, 2026, 6:52 PM
Reserved
Apr 7, 2026, 6:13 PM
Status
Analyzed
Published
May 22, 2026, 4:16 AM
Modified
Jul 23, 2026, 4:10 PM