CVE-2026-39828 PUBLISHED

Invoking bypass of certificate restrictions in golang.org/x/crypto/ssh

Assigner: Go
Reserved: 07.04.2026 Published: 22.05.2026 Updated: 22.05.2026

When an SSH server authentication callback returned PartialSuccessError with non-nil Permissions, those permissions were silently discarded, potentially dropping certificate restrictions such as force-command after a second factor succeeded. Returning non-nil Permissions with PartialSuccessError now results in a connection error.

Product Status

Vendor golang.org/x/crypto
Product golang.org/x/crypto/ssh
Versions Default: unaffected
  • affected from 0 to 0.52.0 (excl.)

Credits

  • NCC Group Cryptography Services, sponsored by Teleport

References

Problem Types

  • CWE-863: Incorrect Authorization