| ##### |
| # Test govulncheck runs on the subdirectory of a module |
| $ govulncheck -C ${moddir}/vuln/subdir . --> FAIL 3 |
| === Symbol Results === |
| |
| Vulnerability #1: GO-2021-0113 |
| Due to improper index calculation, an incorrectly formatted language tag can |
| cause Parse to panic via an out of bounds read. If Parse is used to process |
| untrusted user inputs, this may be used as a vector for a denial of service |
| attack. |
| More info: https://pkg.go.dev/vuln/GO-2021-0113 |
| Module: golang.org/x/text |
| Found in: golang.org/x/text@v0.3.0 |
| Fixed in: golang.org/x/text@v0.3.7 |
| Example traces found: |
| #1: subdir/subdir.go:8:16: subdir.Foo calls language.Parse |
| |
| Your code is affected by 1 vulnerability from 1 module. |
| This scan also found 0 vulnerabilities in packages you import and 1 |
| vulnerability in modules you require, but your code doesn't appear to call these |
| vulnerabilities. |
| Use '-show verbose' for more details. |
| |
| ##### |
| # Test govulncheck runs on the subdirectory of a module |
| $ govulncheck -C ${moddir}/vuln/subdir -show=traces . --> FAIL 3 |
| === Symbol Results === |
| |
| Vulnerability #1: GO-2021-0113 |
| Due to improper index calculation, an incorrectly formatted language tag can |
| cause Parse to panic via an out of bounds read. If Parse is used to process |
| untrusted user inputs, this may be used as a vector for a denial of service |
| attack. |
| More info: https://pkg.go.dev/vuln/GO-2021-0113 |
| Module: golang.org/x/text |
| Found in: golang.org/x/text@v0.3.0 |
| Fixed in: golang.org/x/text@v0.3.7 |
| Example traces found: |
| #1: for function golang.org/x/text/language.Parse |
| subdir/subdir.go:8:16: golang.org/vuln/subdir.Foo |
| language/parse.go:228:6: golang.org/x/text/language.Parse |
| |
| Your code is affected by 1 vulnerability from 1 module. |
| This scan also found 0 vulnerabilities in packages you import and 1 |
| vulnerability in modules you require, but your code doesn't appear to call these |
| vulnerabilities. |
| Use '-show verbose' for more details. |