blob: 30e6e4b422e7c40ba97e789a61f05dd7214327d5 [file] [log] [blame]
$ govulncheck -json ${novuln_binary}
{
"Calls": null,
"Imports": null,
"Requires": null,
"Vulns": null,
"Modules": [
{
"Path": "golang.org/x/text",
"Version": "v0.3.7",
"Dir": "",
"Replace": null
}
]
}
$ govulncheck -json ${vuln_binary} --> FAIL 3
{
"Calls": null,
"Imports": null,
"Requires": null,
"Vulns": [
{
"OSV": {
"id": "GO-2021-0113",
"published": "2021-10-06T17:51:21Z",
"modified": "2021-10-06T17:51:21Z",
"aliases": [
"CVE-2021-38561"
],
"details": "Due to improper index calculation, an incorrectly formatted language tag can cause Parse\nto panic via an out of bounds read. If Parse is used to process untrusted user inputs,\nthis may be used as a vector for a denial of service attack.\n",
"affected": [
{
"package": {
"name": "golang.org/x/text/language",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.7"
}
]
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2021-0113"
},
"ecosystem_specific": {
"symbols": [
"Parse",
"MatchStrings",
"MustParse",
"ParseAcceptLanguage"
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go-review.googlesource.com/c/text/+/340830"
},
{
"type": "FIX",
"url": "https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f"
}
]
},
"Symbol": "Parse",
"PkgPath": "golang.org/x/text/language",
"ModPath": "golang.org/x/text",
"CallSink": 0,
"ImportSink": 0,
"RequireSink": 0
}
],
"Modules": [
{
"Path": "golang.org/x/text",
"Version": "v0.3.0",
"Dir": "",
"Replace": null
}
]
}