| $ 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 |
| }, |
| { |
| "Path": "stdlib", |
| "Version": "", |
| "Dir": "", |
| "Replace": null |
| } |
| ] |
| } |
| |
| $ govulncheck -json ${vuln_binary} |
| { |
| "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", |
| "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": { |
| "imports": [ |
| { |
| "path": "golang.org/x/text/language", |
| "symbols": [ |
| "MatchStrings", |
| "MustParse", |
| "Parse", |
| "ParseAcceptLanguage" |
| ] |
| } |
| ] |
| } |
| } |
| ], |
| "references": [ |
| { |
| "type": "FIX", |
| "url": "https://go.dev/cl/340830" |
| }, |
| { |
| "type": "FIX", |
| "url": "https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f" |
| }, |
| { |
| "type": "WEB", |
| "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-38561" |
| } |
| ] |
| }, |
| "Symbol": "Parse", |
| "PkgPath": "golang.org/x/text/language", |
| "ModPath": "golang.org/x/text", |
| "CallSink": 0, |
| "ImportSink": 0, |
| "RequireSink": 0 |
| } |
| ], |
| "Modules": [ |
| { |
| "Path": "github.com/tidwall/gjson", |
| "Version": "v1.9.2", |
| "Dir": "", |
| "Replace": null |
| }, |
| { |
| "Path": "github.com/tidwall/match", |
| "Version": "v1.1.0", |
| "Dir": "", |
| "Replace": null |
| }, |
| { |
| "Path": "github.com/tidwall/pretty", |
| "Version": "v1.2.0", |
| "Dir": "", |
| "Replace": null |
| }, |
| { |
| "Path": "golang.org/x/text", |
| "Version": "v0.3.0", |
| "Dir": "", |
| "Replace": null |
| }, |
| { |
| "Path": "stdlib", |
| "Version": "", |
| "Dir": "", |
| "Replace": null |
| } |
| ] |
| } |
| |