cve.bz

CVE-2026-42508 golang crypto: Improper Certificate Validation

9.1 criticalEPSS 6.9%Fix available

Critical (9.1) in golang crypto. EPSS 6.9% estimated probability of exploitation activity in the next 30 days. Fixed in golang.org/x/crypto 0.52.0.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
6.9% (unchanged from 6.9% a week ago; 6.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-05-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-295 Improper Certificate Validation
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42508 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42508?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42508?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42508 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
golang.org/x/crypto/ssh/knownhostsbefore 0.52.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5cgq-3rg8-m6cvGogolang.org/x/crypto<0.52.00.52.0
GO-2026-5021Gogolang.org/x/crypto<0.52.00.52.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-go.cryptono fix listedDEBIAN-CVE-2026-42508
Debian14golang-go.crypto1:0.52.0-1DEBIAN-CVE-2026-42508
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 4 moresnapdno fix listedUBUNTU-CVE-2026-42508
Ubuntu25.10snapd, golang-go.cryptono fix listedUBUNTU-CVE-2026-42508
UbuntuPro:16.04:LTSlxd2.0.11-0ubuntu1~16.04.4+esm3UBUNTU-CVE-2026-42508
UbuntuPro:18.04:LTSgolang-go.crypto1:0.0~git20170629.0.5ef0053-2ubuntu0.1~esm2UBUNTU-CVE-2026-42508
UbuntuPro:18.04:LTSlxd3.0.3-0ubuntu1~18.04.2+esm3UBUNTU-CVE-2026-42508
UbuntuPro:20.04:LTSgolang-go.crypto1:0.0~git20200221.2aa609c-1ubuntu0.1~esm2UBUNTU-CVE-2026-42508
UbuntuPro:22.04:LTSgolang-go.crypto1:0.0~git20211202.5770296-1ubuntu0.1~esm2UBUNTU-CVE-2026-42508
UbuntuPro:24.04:LTSgolang-go.crypto1:0.19.0-1ubuntu0.1~esm2UBUNTU-CVE-2026-42508
UbuntuPro:26.04:LTSgolang-go.crypto1:0.47.0-1ubuntu0.1~esm1UBUNTU-CVE-2026-42508
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.10.1-2.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more2:1.33.14-4.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamcockpit-podman0:84.1-1.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.10-1.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.229.0-3.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.4.0-8.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamcontainers-common2:1-82.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamcrit, criu, criu-libs and 5 more0:3.18-5.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamcrun, crun-debuginfo, crun-debugsource0:1.14.3-2.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamfuse-overlayfs, fuse-overlayfs-debuginfo, fuse-overlayfs-debugsource0:1.13-1.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamlibslirp, libslirp-devel, libslirp-debuginfo and 1 more0:4.4.0-2.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
Red Hatenterprise_linux:8::appstreamnetavark2:1.10.3-1.module+el8.10.0+24482+e50f4e4fRHSA-2026:35833
48 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1podman4.9.5-150300.9.78.1SUSE-SU-2026:2636-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morecosign3.1.1-150400.3.45.1SUSE-SU-2026:2827-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moredistribution3.1.1-150400.9.41.1SUSE-SU-2026:4212-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 3 morepodman4.9.5-150400.4.74.2SUSE-SU-2026:2693-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morebuildah1.35.5-150400.3.68.1SUSE-SU-2026:2706-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 5 morepodman4.9.5-150500.3.73.2SUSE-SU-2026:2715-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Module for Containers 15 SP7 and 4 morebuildah1.35.5-150500.3.62.1SUSE-SU-2026:2733-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5 and 2 moregoogle-guest-agent20260529.00-150000.1.70.1SUSE-SU-2026:2612-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5 and 2 moregoogle-osconfig-agent20260615.01-150000.1.55.1SUSE-SU-2026:2611-1
SUSELinux Enterprise Module for Basesystem 15 SP7alloy1.17.1-150700.15.23.1SUSE-SU-2026:2824-1
SUSELinux Enterprise Module for Containers 15 SP7containerized-data-importer1.64.0-150700.9.14.1SUSE-SU-2026:4209-1
SUSELinux Enterprise Module for Containers 15 SP7kubevirt1.7.4-150700.3.30.1SUSE-SU-2026:3203-1
34 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0alloy1.17.0-160000.1.1openSUSE-SU-2026:21251-1
openSUSELeap 16.0amazon-ssm-agent3.3.4624.0-160000.1.1openSUSE-SU-2026:21079-1
openSUSELeap 16.0cloudflared2026.9.1-bp160.1.1openSUSE-SU-2026:21924-1
openSUSELeap 16.0containerized-data-importer1.651.65.0-160000.3.1openSUSE-SU-2026:21824-1
openSUSELeap 16.0cosign3.1.1-160000.1.1openSUSE-SU-2026:21281-1
openSUSELeap 16.0distribution3.1.1-160000.1.1openSUSE-SU-2026:21084-1
openSUSELeap 16.0glab1.114.0-bp160.1.1openSUSE-SU-2026:21662-1
openSUSELeap 16.0google-guest-agent20260529.00-160000.1.1openSUSE-SU-2026:21069-1
openSUSELeap 16.0google-osconfig-agent20260615.01-160000.1.2openSUSE-SU-2026:21210-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260827T195228-160000.1.1openSUSE-SU-2026:21761-1
openSUSELeap 16.0kubevirt1.81.8.4-160000.1.1openSUSE-SU-2026:21590-1
16 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+3901+4b80ecd7ALSA-2026:35833
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7ALSA-2026:35833
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+4047+545787c4ALSA-2026:35833
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+4089+ce72bbbeALSA-2026:35833
AlmaLinux8buildah, buildah-tests2:1.33.14-4.module_el8.10.0+4213+0493256bALSA-2026:35833
AlmaLinux8cockpit-podman84.1-1.module_el8.10.0+4102+6c76e544ALSA-2026:35833
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3970+8445edf6ALSA-2026:35833
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+4068+0e21408fALSA-2026:35833
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+4090+91932338ALSA-2026:35833
AlmaLinux8container-selinux2:2.229.0-3.module_el8.10.0+4213+0493256bALSA-2026:35833
AlmaLinux8containernetworking-plugins1:1.4.0-8.module_el8.10.0+4136+16425343ALSA-2026:35833
AlmaLinux8containers-common2:1-82.module_el8.10.0+3876+e55593a8ALSA-2026:35833
49 more for AlmaLinux in the JSON.
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+1874+ce489889RLSA-2026:35833
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+1880+8e896d1bRLSA-2026:35833
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+1896+b18fa106RLSA-2026:35833
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+1948+4b5cd4a9RLSA-2026:35833
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+2001+6a33db9fRLSA-2026:35833
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+40047+0c0a73f4RLSA-2026:35833
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+40133+32c21f88RLSA-2026:35833
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2026:35833
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1825+623b0c20RLSA-2026:35833
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1843+6892ab28RLSA-2026:35833
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1872+2e18eb19RLSA-2026:35833
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1874+ce489889RLSA-2026:35833
82 more for Rocky Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Important: A flaw in `golang.org/x/crypto/ssh/knownhosts` allows a remote attacker to bypass security checks. This vulnerability arises because the system fails to properly verify the revocation status of a Certificate Authority (CA) `SignatureKey`. In Red Hat environments, this could enable an attacker to present a revoked key, leading to its acceptance as valid and potentially granting unauthorized access or facilitating the spoofing of legitimate entities.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10podman-7:5.8.2-4.el10_2Fixed 2026-07-09RHSA-2026:37072
Red Hat Enterprise Linux 8container-tools:rhel8-8100020260701102925.afee755dFixed 2026-07-06RHSA-2026:35833
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportcontainer-tools:rhel8-8060020260803064027.ad008a3aFixed 2026-08-06RHSA-2026:51288
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Oncontainer-tools:rhel8-8060020260803064027.ad008a3aFixed 2026-08-06RHSA-2026:51288
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicecontainer-tools:rhel8-8080020260721142025.63b34585Fixed 2026-08-04RHSA-2026:49944
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionscontainer-tools:rhel8-8080020260721142025.63b34585Fixed 2026-08-04RHSA-2026:49944
Red Hat Enterprise Linux 9podman-6:5.8.2-4.el9_8Fixed 2026-07-09RHSA-2026:37123
Red Hat Enterprise Linux 9.6 Extended Update Supportpodman-5:5.4.0-22.el9_6.5Fixed 2026-09-14RHSA-2026:67450
RHEM 1.0 for RHEL 9flightctl-0:1.0.3-1.el9emFixed 2026-07-08RHSA-2026:36796
RHEM 1.1 for RHEL 10flightctl-0:1.1.3-1.el10emFixed 2026-07-16RHSA-2026:41019
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Not affected
ExternalDNS Operatoredo/external-dns-rhel9Not affected
External Secrets Operator for Red Hat OpenShiftexternal-secrets-operator/external-secrets-rhel9Will not fix
OpenShift Pipelinesopenshift-pipelines/pipelines-chains-controller-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-pipelines-as-code-controller-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-pipelines-as-code-watcher-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-results-api-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-results-watcher-rhel9Affected
OpenShift Serverlessopenshift-serverless-1/kn-plugin-func-func-util-rhel9Affected
OpenShift Serverlessopenshift-serverless-clientsAffected
120 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42508.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON