CVE-2026-42508: golang.org/x/crypto/ssh/knownhosts vulnerable to auth bypass via unenforced @revoked status
(updated )
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.
References
- access.redhat.com/errata/RHSA-2026:23262
- access.redhat.com/errata/RHSA-2026:23264
- access.redhat.com/errata/RHSA-2026:26546
- access.redhat.com/errata/RHSA-2026:26547
- access.redhat.com/errata/RHSA-2026:35833
- access.redhat.com/security/cve/CVE-2026-42508
- bugzilla.redhat.com/show_bug.cgi?id=2480688
- github.com/advisories/GHSA-5cgq-3rg8-m6cv
- go.dev/cl/781220
- go.dev/issue/79568
- groups.google.com/g/golang-announce/c/a082jnz-LvI
- nvd.nist.gov/vuln/detail/CVE-2026-42508
- pkg.go.dev/vuln/GO-2026-5021
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42508.json
Code Behaviors & Features
Detect and mitigate CVE-2026-42508 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →