Live threats

All CVEs / Golang

CVE-2022-27191Golang Ssh

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.0%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Mar 18, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ssh.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go golang.org/x/crypto < 0.0.0-20220314234659-1baeb1ce4c0b 0.0.0-20220314234659-1baeb1ce4c0b go get golang.org/x/crypto@v0.0.0-20220314234659-1baeb1ce4c0b
Go golang.org/x/crypto < 0.0.0-20220314234659-1baeb1ce4c0b 0.0.0-20220314234659-1baeb1ce4c0b go get golang.org/x/crypto@v0.0.0-20220314234659-1baeb1ce4c0b

Per OSV / GitHub Advisories (GHSA-8c26-wmh5-6g9v, GO-2021-0356). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golangssh< 0.0.0-20220314234659-1baeb1ce4c0b
fedoraprojectextra_packages_for_enterprise_linux8.0
fedoraprojectfedora34
fedoraprojectfedora35
fedoraprojectfedora36
redhatadvanced_cluster_management_for_kubernetes2.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.