Improper Check for Certificate Revocation Affecting golang.org/x/crypto/ssh/knownhosts package, versions <0.52.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
7.31% (94th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOLANGORGXCRYPTOSSHKNOWNHOSTS-16796449
  • published22 May 2026
  • disclosed22 May 2026
  • creditUnknown

Introduced: 22 May 2026

CVE-2026-42508  (opens in a new tab)
CWE-299  (opens in a new tab)

How to fix?

Upgrade golang.org/x/crypto/ssh/knownhosts to version 0.52.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Check for Certificate Revocation in the SignatureKey verification process. An attacker can bypass revocation enforcement by presenting a certificate with a revoked SignatureKey, potentially allowing unauthorized access or trust to be established.

CVSS Base Scores

version 4.0
version 3.1