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.
Published: 2026-08-28
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The bug allows source-address restrictions set in authentication callbacks to be ignored for all methods except PublicKeyCallback. An attacker connecting from an untrusted IP can create a legitimate authentication callback that returns a Permissions structure with a source-address critical option. Because the check is not enforced for PasswordCallback, KeyboardInteractiveCallback, NoClientAuthCallback, or GSSAPIWithMICConfig.AllowLogin, the restriction is silently bypassed, enabling the attacker to log in or gain privileges he should not have. The impact is a loss of confidentiality and integrity for the SSH service and any resources the authenticated user can access.

Affected Systems

Vendors: golang.org/x/crypto for the golang.org/x/crypto/ssh package. All releases of golang.org/x/crypto/ssh that contain the unpatched callback enforcement logic are vulnerable. The exact affected versions are not listed, so any version prior to the fix that includes the code should be considered at risk and updated to a new release.

Risk and Exploitability

The vulnerability can be exploited remotely via the SSH protocol, as an attacker can connect to the service and supply a malicious authentication callback. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The lack of enforcement of source-address restrictions effectively reduces the SSH server’s ability to restrict access based on IP, making it easier for a remote attacker to bypass configured firewall rules or IP-based controls. Given that the bug allows bypass of a critical security feature, it is considered a high-risk exploitation scenario.

Generated by OpenCVE AI on August 28, 2026 at 16:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the golang.org/x/crypto/ssh package to a version that includes the fix for CVE-2026-56854.
  • If your application vendorizes the SSH library, replace the vendored copy with the upstream patched version and rebuild the binaries.
  • As a temporary mitigation, restrict SSH access at the network perimeter, using firewall rules to allow only trusted source addresses to reach the SSH service, thereby compensating for the missing source-address enforcement.

Generated by OpenCVE AI on August 28, 2026 at 16:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-285

Fri, 28 Aug 2026 15:30:00 +0000

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

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2026-08-28T15:14:26.918Z

Reserved: 2026-06-23T15:10:49.353Z

Link: CVE-2026-56854

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-28T16:18:17.607

Modified: 2026-08-28T16:18:17.607

Link: CVE-2026-56854

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T16:45:03Z

Weaknesses