Lucene search

K
osvGoogleOSV:GO-2021-0356
HistoryApr 25, 2022 - 8:38 p.m.

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

2022-04-2520:38:40
Google
osv.dev
16

0.003 Low

EPSS

Percentile

65.4%

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.