{"id":"GO-2021-0356","revision":"78d0bfe8b55b412dba7bd28bf1cf402c","records":[{"revision":"78d0bfe8b55b412dba7bd28bf1cf402c","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2021-0356","aliases":["CVE-2022-27191","GHSA-8c26-wmh5-6g9v"],"title":"Denial of service via crafted Signer in golang.org/x/crypto/ssh","description":"Attackers can cause a crash in SSH servers when the server has been configured by passing a Signer to ServerConfig.AddHostKey such that\n1) the Signer passed to AddHostKey does not implement AlgorithmSigner, and\n2) the Signer passed to AddHostKey returns a key of type “ssh-rsa” from its PublicKey method.\n\nServers that only use Signer implementations provided by the ssh package are unaffected.","state":0,"publishedAt":"2022-04-25T20:38:40+00:00","modifiedAt":"2026-02-04T02:54:42.180263+00:00","affected":[{"ecosystem":"Go","name":"golang.org/x/crypto","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.0-20220314234659-1baeb1ce4c0b"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://go.dev/cl/392355","https://go.googlesource.com/crypto/+/1baeb1ce4c0b006eff0f294c47cb7617598dfb3d","https://groups.google.com/g/golang-announce","https://groups.google.com/g/golang-announce/c/-cp44ypCT5s"],"sourceUrl":"https://osv.dev/vulnerability/GO-2021-0356","license":"OSV · upstream source license applies","key":"osv:GO-2021-0356","identifiers":["GO-2021-0356","CVE-2022-27191","GHSA-8c26-wmh5-6g9v"]},"retained":false,"historicalAffected":[]}],"coverage":[]}