GO-2021-0356

Source
https://pkg.go.dev/vuln/GO-2021-0356
Import Source
https://vuln.go.dev/ID/GO-2021-0356.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2021-0356
Aliases
Published
2022-04-25T20:38:40Z
Modified
2024-09-11T06:13:46.160063Z
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.

References

Affected packages

Go / golang.org/x/crypto

Package

Name
golang.org/x/crypto
View open source insights on deps.dev
Purl
pkg:golang/golang.org/x/crypto

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20220314234659-1baeb1ce4c0b

Ecosystem specific

{
    "imports": [
        {
            "path": "golang.org/x/crypto/ssh",
            "symbols": [
                "ServerConfig.AddHostKey"
            ]
        }
    ]
}