CVEfocus › CVE database › CVE-2022-27191

CVE-2022-27191

EPSS 3.0% (higher than 88% of CVEs)Published 2022-03-18Updated 2024-08-03Assigner: mitre

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.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

127Fixed
6Fix pending
4Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-go.cryptoFix pendingUBUNTU-CVE-2022-27191
Ubuntu 26.04golang-go.cryptoFix pendingUBUNTU-CVE-2022-27191
Ubuntu 26.04snapdNot affected
vulnerable_code_not_present
Ubuntu 25.10golang-go.cryptoWill not fix
snapd contains an embedded copy of golang-go.crypto lxd in 18.04 LTS and earlier contains an embedded copy of golang-go.crypto snapd and lxd only use the…
UBUNTU-CVE-2022-27191
Ubuntu 25.10snapdNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-go.cryptoFix pendingUBUNTU-CVE-2022-27191
Ubuntu 24.04snapdNot affected
vulnerable_code_not_present
Ubuntu 22.04golang-go.cryptoFix pendingUBUNTU-CVE-2022-27191
Ubuntu 22.04snapdNot affected
vulnerable_code_not_present
Ubuntu 20.04golang-go.cryptoFix pendingUBUNTU-CVE-2022-27191
Ubuntu 20.04lxdNot affected
vulnerable_code_not_present
Ubuntu 18.04golang-go.cryptoFix pendingUBUNTU-CVE-2022-27191
Ubuntu 16.04golang-go.cryptoWill not fix
snapd contains an embedded copy of golang-go.crypto lxd in 18.04 LTS and earlier contains an embedded copy of golang-go.crypto snapd and lxd only use the…
UBUNTU-CVE-2022-27191
Ubuntu 16.04lxdWill not fix
snapd contains an embedded copy of golang-go.crypto lxd in 18.04 LTS and earlier contains an embedded copy of golang-go.crypto snapd and lxd only use the…
Ubuntu 16.04snapdWill not fix
snapd contains an embedded copy of golang-go.crypto lxd in 18.04 LTS and earlier contains an embedded copy of golang-go.crypto snapd and lxd only use the…
Debian 14golang-go.cryptoFixed1:0.0~git20220315.3147a52-1DEBIAN-CVE-2022-27191
Debian 13golang-go.cryptoFixed1:0.0~git20220315.3147a52-1DEBIAN-CVE-2022-27191
Debian 12golang-go.cryptoFixed1:0.0~git20220315.3147a52-1DEBIAN-CVE-2022-27191
Red Hat Enterprise Linux 9buildahFixed1:1.27.0-2.el9RHSA-2022:8008
Red Hat Enterprise Linux 9buildah-testsFixed1:1.27.0-2.el9RHSA-2022:8008
Red Hat Enterprise Linux 9podmanFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-dockerFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-gvproxyFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-pluginsFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-remoteFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-testsFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 8aardvark-dnsFixed2:1.1.0-4.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8buildahFixed1:1.24.5-2.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8buildah-testsFixed1:1.27.0-2.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8cockpit-podmanFixed0:46-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8conmonFixed3:2.1.4-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8container-selinuxFixed2:2.189.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8containernetworking-pluginsFixed1:1.1.1-2.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8containers-commonFixed2:1-35.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8critFixed0:3.15-3.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8criuFixed0:3.15-3.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8criu-develFixed0:3.15-3.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8criu-libsFixed0:3.15-3.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8crunFixed0:1.5-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8fuse-overlayfsFixed0:1.9-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8libslirpFixed0:4.4.0-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8libslirp-develFixed0:4.4.0-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8netavarkFixed2:1.1.0-6.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookFixed0:1.2.5-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8podmanFixed3:4.2.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8podman-catatonitFixed2:4.0.2-8.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8podman-dockerFixed3:4.2.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8podman-gvproxyFixed3:4.2.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8podman-manpagesNot affected
Red Hat Enterprise Linux 8podman-pluginsFixed2:4.0.2-8.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8podman-remoteFixed2:4.0.2-8.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8podman-testsFixed3:4.2.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8python-podmanFixed0:4.0.0-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8python3-criuFixed0:3.15-3.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8python3-podmanFixed0:4.2.0-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8runcFixed1:1.1.4-1.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8skopeoFixed2:1.6.2-5.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8skopeo-testsFixed2:1.9.2-1.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8slirp4netnsFixed0:1.2.0-2.module+el8.7.0+16772+33343656RHSA-2022:7469
Red Hat Enterprise Linux 8toolboxFixed0:0.0.99.3-0.5.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8toolbox-testsFixed0:0.0.99.3-0.5.module+el8.7.0+16520+2db5507dRHSA-2022:7457
Red Hat Enterprise Linux 8udicaFixed0:0.2.6-3.module+el8.7.0+16772+33343656RHSA-2022:7469
AlmaLinux 9buildahFixed1:1.27.0-2.el9ALSA-2022:8008
AlmaLinux 9buildah-testsFixed1:1.27.0-2.el9ALSA-2022:8008
AlmaLinux 9podmanFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-dockerFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-gvproxyFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-pluginsFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-remoteFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-testsFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 8aardvark-dnsFixed2:1.0.1-35.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8buildahFixed1:1.24.5-2.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8buildah-testsFixed1:1.24.5-2.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8cockpit-podmanFixed46-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8conmonFixed2:2.1.4-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8container-selinuxFixed2:2.189.0-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8containernetworking-pluginsFixed1:1.1.1-2.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8containers-commonFixed2:1-35.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8critFixed3.15-3.module_el8.6.0+3137+d33c3efbALSA-2022:7469
AlmaLinux 8criuFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8criu-develFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8criu-libsFixed3.15-3.module_el8.6.0+3137+d33c3efbALSA-2022:7469
AlmaLinux 8crunFixed1.5-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8fuse-overlayfsFixed1.9-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8libslirpFixed4.4.0-1.module_el8.6.0+3137+d33c3efbALSA-2022:7469
AlmaLinux 8libslirp-develFixed4.4.0-1.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8netavarkFixed2:1.0.1-35.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8oci-seccomp-bpf-hookFixed1.2.5-1.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podmanFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-catatonitFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-dockerFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-gvproxyFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-pluginsFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-remoteFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8podman-testsFixed2:4.0.2-8.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8python3-criuFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8python3-podmanFixed4.0.0-1.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8runcFixed1:1.1.4-1.module_el8.7.0+3344+484dae7bALSA-2022:7469
AlmaLinux 8skopeoFixed2:1.6.2-5.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8skopeo-testsFixed2:1.6.2-5.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8slirp4netnsFixed1.1.8-2.module_el8.6.0+2877+8e437bf5ALSA-2022:7469
AlmaLinux 8toolboxFixed0.0.99.3-0.5.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8toolbox-testsFixed0.0.99.3-0.5.module_el8.7.0+3344+5bcd850fALSA-2022:7469
AlmaLinux 8udicaFixed0.2.6-3.module_el8.6.0+2886+d33c3efbALSA-2022:7469
Rocky Linux 8buildahFixed1:1.24.5-2.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8cockpit-podmanFixed0:53-1.module+el8.7.0+1078+e72fcd4fRLSA-2022:7469
Rocky Linux 8conmonFixed2:2.1.4-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux 8container-selinuxFixed2:2.189.0-1.module+el8.7.0+1076+9b1c11c1RLSA-2022:7469
Rocky Linux 8containernetworking-pluginsFixed1:1.1.1-3.module+el8.7.0+1078+e72fcd4fRLSA-2022:7457
Rocky Linux 8containers-commonFixed2:1-35.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8criuFixed0:3.15-3.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux 8crunFixed0:1.5-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux 8fuse-overlayfsFixed0:1.9-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7469
Rocky Linux 8libslirpFixed0:4.4.0-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux 8oci-seccomp-bpf-hookFixed0:1.2.6-1.module+el8.7.0+1078+e72fcd4fRLSA-2022:7469
Rocky Linux 8podmanFixed2:4.0.2-8.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8python-podmanFixed0:4.0.0-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8runcFixed1:1.1.4-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux 8skopeoFixed2:1.6.2-5.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8slirp4netnsFixed0:1.1.8-2.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Rocky Linux 8toolboxFixed0:0.0.99.3-0.6.module+el8.7.0+1078+e72fcd4fRLSA-2022:7469
Rocky Linux 8udicaFixed0:0.2.6-3.module+el8.7.0+1077+0e4f03d4RLSA-2022:7469
Alpine Linux 3.24corednsFixed1.9.3-r0ALPINE-CVE-2022-27191
Alpine Linux 3.24git-lfsFixed3.1.2-r4ALPINE-CVE-2022-27191
Alpine Linux 3.23corednsFixed1.9.3-r0ALPINE-CVE-2022-27191
Alpine Linux 3.23git-lfsFixed3.1.2-r4ALPINE-CVE-2022-27191
Alpine Linux 3.22corednsFixed1.9.3-r0ALPINE-CVE-2022-27191
Alpine Linux 3.22git-lfsFixed3.1.2-r4ALPINE-CVE-2022-27191
Alpine Linux 3.21corednsFixed1.9.3-r0ALPINE-CVE-2022-27191
Alpine Linux 3.21git-lfsFixed3.1.2-r4ALPINE-CVE-2022-27191
Alpine Linux 3.20corednsFixed1.9.3-r0ALPINE-CVE-2022-27191
Alpine Linux 3.20git-lfsFixed3.1.2-r4ALPINE-CVE-2022-27191
Alpine Linux 3.19corednsFixed1.9.3-r0ALPINE-CVE-2022-27191
Alpine Linux 3.19git-lfsFixed3.1.2-r4ALPINE-CVE-2022-27191
Alpine Linux 3.18corednsFixed1.9.3-r0ALPINE-CVE-2022-27191
Alpine Linux 3.18git-lfsFixed3.1.2-r4ALPINE-CVE-2022-27191
Alpine Linux 3.17corednsFixed1.9.3-r0ALPINE-CVE-2022-27191
Alpine Linux 3.17git-lfsFixed3.1.2-r4ALPINE-CVE-2022-27191
Alpine Linux 3.16corednsFixed1.9.3-r0ALPINE-CVE-2022-27191
Alpine Linux 3.16git-lfsFixed3.1.2-r4ALPINE-CVE-2022-27191
Alpine Linux 3.15podmanFixed3.4.6-r0ALPINE-CVE-2022-27191
Alpine Linux 3.14goFixed1.16.15-r0ALPINE-CVE-2022-27191
Go librarygolang.org/x/cryptoFixed0.0.0-20220314234659-1baeb1ce4c0bGO-2021-0356

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.