Find known vulnerabilities that actually affect your Go code
open sourceBSD-3-Clauseself-hostablefree
govulncheck is the Go team's command-line tool for finding known vulnerabilities in a Go project's dependencies. It checks the Go vulnerability database, whose reports the Go security team curates from the NVD, the GitHub Advisory Database and package maintainers in OSV format, then uses static analysis of your source code, or a compiled binary's symbol table, to report only the vulnerabilities your code actually reaches, with a call stack for each. It sends the database only module paths that already have known vulnerabilities, never your code, and can point at another database that implements the same API. It's part of the golang.org/x/vuln module under a BSD licence.
Problems it solves
- check my Go project for vulnerable dependencies without a flood of false positives
- find out whether a CVE in a Go module actually affects my code
- scan a compiled Go binary for known vulnerabilities
- fail CI when a Go dependency has a vulnerability my code calls
- a free vulnerability scanner made by the Go team
Features
- reports only vulnerabilities your code reaches, using call graph analysis
- scans source code or compiled binaries (-mode binary)
- call stack summaries showing how your code reaches a vulnerable function
- uses the Go vulnerability database at vuln.go.dev, curated by the Go security team in OSV format
- -db flag for another database that implements the same API
- build tags and test files with -tags and -test
- sends only module paths with known vulnerabilities, not your code
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what govulncheck does.
- OSV-Scanner Find known vulnerabilities in your project's dependencies, using OSV.dev
- Trivy Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
- Snyk Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations
- Dependabot Automated dependency updates built into GitHub
- cargo-audit Audit Cargo.lock for crates with known security vulnerabilities
- OWASP Dependency-Check Software composition analysis that finds publicly disclosed vulnerabilities in a project's dependencies
