Closed
Description
govulncheck version: v0.0.0-20210830180030-b6ec30af783f
From the x/crypto repo checked out (commit: 32db794688a5a24a23a43f2a984cecd5b3d8da5), run govulncheck and see the old vulnerabilities are printed.
% govulncheck -json ./...
{
"SearchMode": 0,
"Vulnerabilities": [
{
"id": "GO-2020-0012",
"published": "2021-04-14T12:00:00Z",
"modified": "2021-04-14T12:00:00Z",
"aliases": [
"CVE-2020-9283"
],
"package": {
"name": "golang.org/x/crypto/ssh",
"ecosystem": "Go"
},
"details": "An attacker can craft an ssh-ed25519 or [email protected] public\nkey, such that the library will panic when trying to verify a signature\nwith it. If verifying signatures using user supplied public keys, this\nmay be used as a denial of service vector.\n",
"affects": {
"ranges": [
{
"type": "SEMVER",
"fixed": "0.0.0-20200220183623-bac4c82f6975"
}
]
},
"references": [
{
"type": "FIX",
"url": "https://go-review.googlesource.com/c/crypto/+/220357"
},
{
"type": "FIX",
"url": "https://github.com/golang/crypto/commit/bac4c82f69751a6dd76e702d54b3ceb88adab236"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/3L45YRc91SY"
}
],
"ecosystem_specific": {
"symbols": [
"parseED25519",
"ed25519PublicKey.Verify",
"parseSKEd25519",
"skEd25519PublicKey.Verify",
"NewPublicKey"
],
"url": "https://go.googlesource.com/vulndb/+/refs/heads/master/reports/GO-2020-0012.yaml"
}
},
{
"id": "GO-2020-0013",
"published": "2021-04-14T12:00:00Z",
"modified": "2021-04-14T12:00:00Z",
"aliases": [
"CVE-2017-3204"
],
"package": {
"name": "golang.org/x/crypto/ssh",
"ecosystem": "Go"
},
"details": "By default host key verification is disabled which allows for\nman-in-the-middle attacks against SSH clients if\n[`ClientConfig.HostKeyCallback`] is not set.\n",
"affects": {
"ranges": [
{
"type": "SEMVER",
"fixed": "0.0.0-20170330155735-e4e2799dd7aa"
}
]
},
"references": [
{
"type": "FIX",
"url": "https://go-review.googlesource.com/38701"
},
{
"type": "FIX",
"url": "https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991"
},
{
"type": "WEB",
"url": "https://github.com/golang/go/issues/19767"
},
{
"type": "WEB",
"url": "https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/"
}
],
"ecosystem_specific": {
"symbols": [
"NewClientConn"
],
"url": "https://go.googlesource.com/vulndb/+/refs/heads/master/reports/GO-2020-0013.yaml"
}
}
],
"VulnFindings": {
"GO-2020-0012": [
{
"Symbol": "golang.org/x/crypto/ssh.NewPublicKey",
"Position": {
"Filename": "/Users/hakim/vultest/crypto/ssh/keys.go",
"Offset": 23513,
"Line": 951,
"Column": 29
},
"Type": "function",
"Trace": [
{
"Description": "golang.org/x/crypto/ssh.NewSignerFromSigner(...)",
"Position": {
"Filename": "/Users/hakim/vultest/crypto/ssh/keys.go",
"Offset": 23425,
"Line": 950,
"Column": 6
}
}
]
}
],
"GO-2020-0013": [
{
"Symbol": "golang.org/x/crypto/ssh.NewClientConn",
"Position": {
"Filename": "/Users/hakim/vultest/crypto/ssh/client.go",
"Offset": 4990,
"Line": 177,
"Column": 38
},
"Type": "function",
"Trace": [
{
"Description": "golang.org/x/crypto/ssh.Dial(...)",
"Position": {
"Filename": "/Users/hakim/vultest/crypto/ssh/client.go",
"Offset": 4786,
"Line": 172,
"Column": 6
}
}
]
}
]
}
}