Incorrect Authorization Affecting golang.org/x/crypto/ssh package, versions <0.55.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GOLANGORGXCRYPTOSSH-19432142
  • published30 Aug 2026
  • disclosed28 Aug 2026
  • creditLongwei Wang

Introduced: 28 Aug 2026

NewCVE-2026-56854  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade golang.org/x/crypto/ssh to version 0.55.0 or higher.

Overview

golang.org/x/crypto/ssh is a SSH client and server

Affected versions of this package are vulnerable to Incorrect Authorization in NewServerConn, which applied the critical option from the Permissions returned by an authentication callback only on the PublicKeyCallback and VerifiedPublicKeyCallback paths and silently ignored it for PasswordCallback, KeyboardInteractiveCallback, NoClientAuthCallback, and GSSAPIWithMICConfig.AllowLogin. An attacker can connect from an address the restriction was meant to exclude by authenticating through one of those unenforced callback paths. This affects only servers that set a source-address restriction from a password, keyboard-interactive, no-client-auth, or GSSAPI authentication callback and rely on it being enforced.

Note: This is a bypass of the fix for the vulnerability described in CVE-2026-46595.

CVSS Base Scores

version 4.0
version 3.1