CVE-2026-42508: 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.
Security readout for executives and security teams
Plain-English summary
A flaw in a widely used Go SSH library let revoked certificate authority keys still be trusted when verifying hosts. In practice, if an organization revoked a signing key to cut off compromised or retired infrastructure, Go-based SSH clients could keep accepting connections signed by it. This undermines the trust model that revocation is supposed to guarantee for automated systems and administrative tooling.
Executive priority
Treat as a high-priority patch cycle item, not an emergency. No active exploitation is reported, but the CVSS 9.1 rating and broad Red Hat errata list mean many enterprise Go workloads need updates. Schedule remediation in the current sprint and confirm coverage of internally built Go services and third-party appliances that embed Go SSH tooling.
Technical view
The golang.org/x/crypto/ssh/knownhosts package failed to evaluate the @revoked marker against a certificate's SignatureKey (the CA that signed the presented cert). Only the direct key was checked, so a host certificate signed by a revoked CA still passed verification. The fix now checks @revoked status for both key and key.SignatureKey. Classified CWE-295 (improper certificate validation), CVSS 9.1 (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:N).
Likely exposure
Applies to Go programs that import golang.org/x/crypto/ssh/knownhosts and rely on a known_hosts file with @revoked entries for CA keys. Common in SSH clients, automation, CI/CD runners, provisioning tools, and infrastructure agents written in Go. Red Hat has shipped errata (RHSA-2026:36796, 37072, 35833, and others) for platform components that embed this library.
Exploitation context
No public exploitation, no proof-of-concept, and no KEV entry is cited in the bundle. Exploitation is conditional: an attacker must control a host key signed by a previously trusted-then-revoked CA and reach a Go SSH client that trusts that CA through knownhosts. Impact is confidentiality and integrity (spoofed server, potential man-in-the-middle), with no availability impact per the CVSS vector.
Researcher notes
Root cause is a missed check in ssh/knownhosts: revocation was evaluated on the presented key but not on its signing CA (key.SignatureKey), defeating the @revoked marker for CA entries. This is a trust-boundary bug (CWE-295) rather than a memory-safety or crypto-primitive weakness. Watch for downstream projects that vendor x/crypto; a rebuild is required even if go.mod is updated. Cross-reference GO-2026-5021 and Red Hat VEX data for authoritative affected-component lists.
Mitigation direction
Upgrade golang.org/x/crypto to the fixed release noted in GO-2026-5021 and rebuild dependent binaries.
Apply Red Hat errata (RHSA-2026:36796, 37072, 35833, 37123, 36808) on affected RHEL components.
Inventory internal Go binaries and agents that import ssh/knownhosts and prioritize patch rollout.
Where patching is delayed, avoid relying solely on @revoked CA entries; rotate trusted CA keys instead.
Confirm no shadow copies of the vulnerable module remain via vendored dependencies or vendor directories.
Validation and detection
Run govulncheck against Go builds to confirm GO-2026-5021 no longer flags the binary.
Diff go.sum before and after upgrade to verify golang.org/x/crypto reached the patched version.
For RHEL hosts, verify rpm -q reports the errata-patched package build.
Test with a known_hosts file that marks a CA @revoked and confirm the client rejects a cert signed by it.
Re-scan container images and SBOMs to ensure no legacy x/crypto version ships in production artifacts.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-295: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
21Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: yesTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-295 · source CWE mapping
Improper Certificate Validation
Improper Certificate Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.