KnownHosts Revocation Check Failure in golang.org/x/crypto/ssh<0.52.0
CVE-2026-42508 Published on May 22, 2026
Invoking auth bypass via unenforced @revoked status in golang.org/x/crypto/ssh/knownhosts
Previously, a revoked 'SignatureKey' belonging to a CA was not correctly checked for revocation. Now, both the 'key' and 'key.SignatureKey' are checked for @revoked.
Vulnerability Analysis
CVE-2026-42508 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality and integrity, and no impact on availability.
Weakness Type
Improper Certificate Validation
The software does not validate, or incorrectly validates, a certificate. When a certificate is invalid or malicious, it might allow an attacker to spoof a trusted entity by interfering in the communication path between the host and client. The software might connect to a malicious host while believing it is a trusted host, or the software might be deceived into accepting spoofed data that appears to originate from a trusted host.
Products Associated with CVE-2026-42508
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-42508 are published in these products:
Affected Versions
golang.org/x/crypto/ssh/knownhosts:- Before 0.52.0 is affected.
- Version 7:5.8.2-4.el10_2 and below * is unaffected.
- Version 8100020260701102925.afee755d and below * is unaffected.
- Version 6:5.8.2-4.el9_8 and below * is unaffected.
- Version 0:1.0.3-1.el9em and below * is unaffected.
- Version 0:1.1.3-1.el10em and below * is unaffected.
- Version 0:1.1.3-1.el9em and below * is unaffected.
- Version 1782401674 and below * is unaffected.
- Version 1783813250 and below * is unaffected.
- Version 1781686446 and below * is unaffected.
- Version 1781686458 and below * is unaffected.
- Version 1783502025 and below * is unaffected.
- Version 1784196588 and below * is unaffected.
- Version 1784126780 and below * is unaffected.
- Version 1.25.11-2.hum1 and below * is unaffected.
- Version 1.26.4-2.hum1 and below * is unaffected.
- Version 1783057868 and below * is unaffected.
- Version 1784121108 and below * is unaffected.
- Version 1783612119 and below * is unaffected.
- Version 1782932114 and below * is unaffected.
- Version 1782931768 and below * is unaffected.
- Version 1782932104 and below * is unaffected.
- Version 1783536000 and below * is unaffected.
- Version 1783535989 and below * is unaffected.
- Version 1783536515 and below * is unaffected.
- Version 1782932521 and below * is unaffected.
- Version 1783018461 and below * is unaffected.
- Version 1783018421 and below * is unaffected.
- Version 1782932812 and below * is unaffected.
- Version 1783537001 and below * is unaffected.
- Version 1782932919 and below * is unaffected.
- Version 1783537586 and below * is unaffected.
- Version 1782932969 and below * is unaffected.
- Version 1782933015 and below * is unaffected.
- Version 1782933042 and below * is unaffected.
- Version 1783537392 and below * is unaffected.
- Version 1782933235 and below * is unaffected.
- Version 1782933251 and below * is unaffected.
- Version 1783537955 and below * is unaffected.
- Version 1782933417 and below * is unaffected.
- Version 1783537742 and below * is unaffected.
- Version 1782933602 and below * is unaffected.
- Version 1783019377 and below * is unaffected.
- Version 1782934054 and below * is unaffected.
- Version 1782934036 and below * is unaffected.
- Version 1782934284 and below * is unaffected.
- Version 1783750447 and below * is unaffected.
- Version 1783955846 and below * is unaffected.
- Version 1784125838 and below * is unaffected.
- Version 4-1.4.2 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.