Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 56%

CVE-2026-42508: CWE-295: Improper Certificate Validation in golang.org/x/crypto golang.org/x/crypto/ssh/knownhosts

0
Critical
VulnerabilityCVE-2026-42508cvecve-2026-42508cwe-295
Published: 05/22/2026 (05/22/2026, 02:31:27 UTC)
Source: CVE Database V5
Vendor/Project: golang.org/x/crypto
Product: golang.org/x/crypto/ssh/knownhosts

Description

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.

CVSS v3.1

Score 9.1critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

golang.org/x/crypto/ssh/knownhosts
pkg:golang/golang.org/x/crypto/ssh/knownhosts
Affected versions
=0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/25/2026, 22:09:58 UTC

Technical Analysis

The vulnerability CVE-2026-42508 in golang.org/x/crypto/ssh/knownhosts involves improper certificate validation due to failure to check revocation status of the 'SignatureKey' associated with a certificate authority. Previously, only the primary 'key' was checked for revocation, allowing a revoked CA key to be trusted erroneously. The fix involves verifying both the 'key' and its 'SignatureKey' for revocation status to prevent bypass. This vulnerability is classified under CWE-295 (Improper Certificate Validation) and carries a CVSS 3.1 score of 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N), indicating remote exploitation with no privileges or user interaction required, resulting in high confidentiality and integrity impact. Red Hat has issued security advisories and patches for affected products including Red Hat Edge Manager.

Potential Impact

Successful exploitation of this vulnerability allows an attacker to bypass certificate revocation checks, potentially enabling unauthorized access or impersonation by using revoked CA keys. This compromises the confidentiality and integrity of SSH connections relying on the affected knownhosts package. The vulnerability does not impact availability. No known exploits in the wild have been reported at this time.

Mitigation Recommendations

Red Hat has published security advisories and issued patches addressing CVE-2026-42508. Users of affected Red Hat products, including Red Hat Edge Manager, should apply the official security updates as provided in the Red Hat advisories (e.g., RHSA-2026:23262, RHSA-2026:23264). There is no indication that this vulnerability is mitigated by default or requires no action. Patch status is confirmed by vendor advisories; therefore, applying these official fixes is the recommended mitigation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Go
Date Reserved
2026-04-28T00:21:12.792Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-42508","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:23262","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:23264","vendor":"Red Hat"}]

Threat ID: 6a0fcdabe1370fbb487d502f

Added to database: 05/22/2026, 03:29:47 UTC

Last enriched: 07/25/2026, 22:09:58 UTC

Last updated: 07/31/2026, 21:26:40 UTC

Views: 97

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses