Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh
Published 28 Aug 2026 · Updated 29 Aug 2026
Is your project on an affected golang.org/x/crypto?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.55.0
- Fixed in
- 0.55.0
go get golang.org/x/crypto@v0.55.0Details
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.
Is GO-2026-6303 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected golang.org/x/crypto, and gives you the command that fixes it.
More advisories for golang.org/x/crypto
- LowCVE-2026-78662Prevent DoS on deadlocked undecided channel in golang.org/x/crypto/ssh · 2 Sept 2026
- LowCVE-2026-56855Prevent DoS on deadlocked established channel in golang.org/x/crypto/ssh · 2 Sept 2026
- LowGO-2026-5932The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues · 7 Jul 2026
- CriticalCVE-2026-46595golang.org/x/crypto: Invoking VerifiedPublicKeyCallback permissions skip enforcement · 25 Jun 2026
- CriticalCVE-2026-42508golang.org/x/crypto vulnerable to auth bypass via unenforced @revoked status · 25 Jun 2026
- CriticalCVE-2026-39834golang.org/x/crypto vulnerable to infinite loop on large channel writes · 25 Jun 2026
References
- Reportgo.dev/issue/80213
- Fixgo.dev/cl/797040
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.