CVE-2022-27191 golang.org/x/crypto/ssh Denial of service via crafted Signer

High 7.5 Published Updated

An attacker can crash a server using the Go SSH library by exploiting a flaw in the AddHostKey function, requiring an upgrade to the patched version.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-27191?

CVE-2022-27191 is a high-severity denial of service vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 18 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The golang.org/x/crypto/ssh package before 0.0.0-20220314234659-1baeb1ce4c0b for Go allows an attacker to crash a server in certain circumstances involving AddHostKey.

Which versions are affected by CVE-2022-27191?

3 open source packages ship an affected version, including golang.org/x/crypto. It affects 4 products.

PackageAffectedFixed in
golang.org/x/crypto GoAll versions0.0.0-20220314234659-1baeb1ce4c0b
golang.org/x/crypto GoAll versions0.0.0-20220314234659-1baeb1ce4c0b
golang.org/x/crypto GoAll versions0.0.0-20220314234659-1baeb1ce4c0b
Linux distribution packages (8)
kubevirt Red Hat:container_native_virtualization:4.11::el7All versions0:4.11.0-643.el7
kubevirt-virtctl Red Hat:container_native_virtualization:4.11::el7All versions0:4.11.0-643.el7
kubevirt-virtctl-redistributable Red Hat:container_native_virtualization:4.11::el7All versions0:4.11.0-643.el7
kubevirt Red Hat:container_native_virtualization:4.11::el8All versions0:4.11.0-643.el8
kubevirt-virtctl Red Hat:container_native_virtualization:4.11::el8All versions0:4.11.0-643.el8
kubevirt-virtctl-redistributable Red Hat:container_native_virtualization:4.11::el8All versions0:4.11.0-643.el8
openshift-serverless-clients Red Hat:serverless:1.0::el8All versions0:1.5.0-3.el8
containerd openSUSE:TumbleweedAll versions1.6.9-1.1

Products include Fedoraproject Extra Packages for Enterprise Linux, Fedoraproject Fedora, Golang Ssh, Redhat Advanced Cluster Management for Kubernetes.

How do I fix CVE-2022-27191?

Upgrade golang.org/x/crypto to 0.0.0-20220314234659-1baeb1ce4c0b or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-27191 being exploited?

There is no known exploitation of CVE-2022-27191 in the wild and no public exploit code.

All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities

Sources

Also known as CLEANSTART-2025-ZQ12729, CLEANSTART-2026-VD60296, CLEANSTART-2026-ZO20842, DEBIAN-CVE-2022-27191, GHSA-8c26-wmh5-6g9v, GO-2021-0356 and 5 more.

Is CVE-2022-27191 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free