CVE-2026-56854

Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh

Published Aug 28, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
The source-address critical option in the Permissions returned by an authentication callback was only enforced for the PublicKeyCallback and VerifiedPublicKeyCallback paths, extending the fix for CVE-2026-46595. Permissions returned by the PasswordCallback, KeyboardInteractiveCallback, NoClientAuthCallback, and GSSAPIWithMICConfig.AllowLogin callbacks were not validated against the client's remote address, so a source-address restriction set by those callbacks was silently ignored. The check is now applied to the Permissions returned by any authentication callback.

Analysis

AI-generated

Technical impact

The bug in golang.org/x/crypto/ssh caused the source-address critical option supplied by authentication callbacks to be enforced only for PublicKeyCallback and VerifiedPublicKeyCallback. Other callback methods—PasswordCallback, KeyboardInteractiveCallback, NoClientAuthCallback, and GSSAPIWithMICConfig.AllowLogin—were ignored during permission validation, meaning any source-address restriction these callbacks could impose was silently bypassed. This flaw allows an attacker who can influence or supply the authentication callback to craft permissions that grant access from an untrusted IP, effectively nullifying IP-based access controls that an SSH server might rely on.

Affected Systems

Vendors: golang.org/x/crypto, product: golang.org/x/crypto/ssh. All releases of this SSH library that predate the patch are considered vulnerable; the CVE description does not list exact version numbers, so any version before the fix that contains the unpatched callback enforcement logic should be treated as at risk and updated to a newer release.

Risk and Exploitability

The vulnerability can be leveraged remotely by connecting to an SSH service that uses the vulnerable library and providing a malicious authentication callback. The CVSS score of 7.5 indicates high severity, and although no EPSS score is available, the lack of IP restriction enforcement dramatically increases the likelihood of successful exploitation. The vulnerability is not listed in the CISA KEV catalog. An attacker who can dictate the authentication callback—such as a developer of software that embeds this SSH library—could bypass source-address restrictions, gaining privileged access that should be denied. The dependence on the application to supply callbacks variants means that many real-world deployments using this library are potentially exposed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update golang.org/x/crypto/ssh to a version that includes the CVE‑2026‑56854 fix.
  • If your application vendorises the SSH library, replace the vendored copy with the upstream patched version and rebuild the binaries.
  • As a temporary measure, apply network‑level filtering to restrict SSH access to known trusted source addresses, compensating for the missing source‑address enforcement.

Generated by OpenCVE AI on August 29, 2026 at 01:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-285
Type Values Removed Values Added
Weaknesses CWE-863
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
First Time appeared Golang
Golang crypto
Vendors & Products Golang
Golang crypto
Type Values Removed Values Added
Weaknesses CWE-285
Type Values Removed Values Added
Description The source-address critical option in the Permissions returned by an authentication callback was only enforced for the PublicKeyCallback and VerifiedPublicKeyCallback paths, extending the fix for CVE-2026-46595. Permissions returned by the PasswordCallback, KeyboardInteractiveCallback, NoClientAuthCallback, and GSSAPIWithMICConfig.AllowLogin callbacks were not validated against the client's remote address, so a source-address restriction set by those callbacks was silently ignored. The check is now applied to the Permissions returned by any authentication callback.
Title Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Aug 28, 2026, 8:17 PM
Reserved
Jun 23, 2026, 3:10 PM
Status
Awaiting Analysis
Published
Aug 28, 2026, 4:18 PM
Modified
Sep 3, 2026, 4:37 PM
Severity
Critical
Public date
Aug 28, 2026, 3:14 PM