CVE-2022-27191 golang.org/x/crypto/ssh Denial of service via crafted Signer
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.
| Package | Affected | Fixed in |
|---|---|---|
golang.org/x/crypto Go | All versions | 0.0.0-20220314234659-1baeb1ce4c0b |
golang.org/x/crypto Go | All versions | 0.0.0-20220314234659-1baeb1ce4c0b |
golang.org/x/crypto Go | All versions | 0.0.0-20220314234659-1baeb1ce4c0b |
Linux distribution packages (8)
kubevirt Red Hat:container_native_virtualization:4.11::el7 | All versions | 0:4.11.0-643.el7 |
kubevirt-virtctl Red Hat:container_native_virtualization:4.11::el7 | All versions | 0:4.11.0-643.el7 |
kubevirt-virtctl-redistributable Red Hat:container_native_virtualization:4.11::el7 | All versions | 0:4.11.0-643.el7 |
kubevirt Red Hat:container_native_virtualization:4.11::el8 | All versions | 0:4.11.0-643.el8 |
kubevirt-virtctl Red Hat:container_native_virtualization:4.11::el8 | All versions | 0:4.11.0-643.el8 |
kubevirt-virtctl-redistributable Red Hat:container_native_virtualization:4.11::el8 | All versions | 0:4.11.0-643.el8 |
openshift-serverless-clients Red Hat:serverless:1.0::el8 | All versions | 0:1.5.0-3.el8 |
containerd openSUSE:Tumbleweed | All versions | 1.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.
Other vulnerabilities in Fedoraproject Extra Packages for Enterprise Linux
- CVE-2023-34152 Command injection in ImageMagick
- CVE-2022-4170 Code injection in rxvt-unicode
- CVE-2022-40315 Moodle Minor SQL injection risk in admin user browsing
- CVE-2022-45152 Moodle blind Server-Side Request Forgery (SSRF) vulnerability in LTI provider library
- CVE-2022-24882 Server side NTLM does not properly check parameters in FreeRDP
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.