Advisory

GO-2021-0356

Also known as: CVE-2022-27191, GHSA-8c26-wmh5-6g9v

Summary

Denial of service via crafted Signer in golang.org/x/crypto/ssh

Details

Attackers can cause a crash in SSH servers when the server has been configured by passing a Signer to ServerConfig.AddHostKey such that

  1. the Signer passed to AddHostKey does not implement AlgorithmSigner, and
  2. the Signer passed to AddHostKey returns a key of type “ssh-rsa” from its PublicKey method.

Servers that only use Signer implementations provided by the ssh package are unaffected.

Severity

Not rated by the source.

Dates

Published
2022-04-25 20:38 UTC
Modified
2026-02-04 02:54 UTC

Affected packages and fixes

golang.org/x/crypto

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20220314234659-1baeb1ce4c0b (semver)

Fixed versions

0.0.0-20220314234659-1baeb1ce4c0b

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences