RepoJournal
Go

@golang

Go and the standard library - backend infrastructure at scale

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Go Infrastructure Full archive →

The Wire · Showcase

GO CRYPTO PATCHES SOURCE-ADDRESS VALIDATION BYPASS IN SSH

By RepoJournal · Filed · About Go

CVE-2026-46595 closed a critical gap where SSH source-address restrictions weren't enforced consistently across all authentication methods.

The golang/crypto team shipped a fix [1] that extends source-address validation to all authentication callbacks, not just PublicKeyCallback. Previously, VerifiedPublicKeyCallback could return Permissions with CriticalOptions that bypassed the documented enforcement contract. The patch consolidates the check to a single point at the end of each authentication attempt, catching escapes from any auth path. Alongside the security fix, the team hardened the SSH implementation against race conditions [2] in test helpers, corrected channel initialization ordering [3] that could expose zero-valued fields to concurrent goroutines, and made channel.close idempotent [4] using sync.Once to prevent future panics. One thing to note: source-address options are IP-based and will never match non-IP transports like Unix domain sockets [5], a behavior now documented and tested.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] ssh: enforce the source-address critical option for all auth callbacks golang/crypto
  2. [2] ssh: fix data race in the doClientServerAuth test helper golang/crypto
  3. [3] ssh: initialize new channels fully before adding them to chanList golang/crypto
  4. [4] ssh: make channel.close idempotent golang/crypto
  5. [5] ssh: document and test source-address behavior for non-IP transports golang/crypto

Quick answers

What shipped in Go on July 13, 2026?
CVE-2026-46595 closed a critical gap where SSH source-address restrictions weren't enforced consistently across all authentication methods. In total, 6 commits landed.
Who contributed to Go on July 13, 2026?
1 developer shipped this update, including Nicola Murino.
What were the notable Go updates?
ssh: enforce the source-address critical option for all auth callbacks, ssh: fix data race in the doClientServerAuth test helper, and ssh: initialize new channels fully before adding them to chanList.

More from @golang

Daily updates, in your inbox

Follow Go

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.