# Grype

> A vulnerability scanner for container images and filesystems.

Source: https://talira.ai/catalog/grype-e734z6vj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [security / container security](https://talira.ai/categories/security/container-security), [security / supply chain](https://talira.ai/categories/security/supply-chain)
- Platforms: linux, macos, windows, docker, cli[^7]
- Licence: Apache-2.0[^4][^6]
- Pricing: Free and open source[^4][^5]
- Pricing notes: Anchore offers commercial support for Syft and Grype, and Anchore Enterprise builds on them.
- Free tier: yes[^4][^5]
- Self-hostable: yes[^7]
- Backed by: [Anchore](https://talira.ai/orgs/anchore.md)
- Funding: Series A, 2020[^8]

Grype is Anchore's open source command-line scanner that finds known vulnerabilities in container images ([Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md), OCI and Singularity), directories and SBOMs, including SBOMs made by Anchore's [Syft](https://talira.ai/catalog/syft-13anekq8.md). It matches OS packages from Alpine, [Debian](https://talira.ai/catalog/debian-xqbs9v9y.md), [Ubuntu](https://talira.ai/catalog/ubuntu-3yhk0xfs.md), RHEL, Amazon Linux, Wolfi and others, and language packages for Go, Java, JavaScript, Python, Ruby, Rust, [.NET](https://talira.ai/catalog/net-9p8d54vj.md) and PHP, against a free database Anchore builds from vendor feeds, [GitHub](https://talira.ai/catalog/github-ppcgj756.md) Security Advisories and the NVD, enriched with EPSS scores and CISA's KEV catalog. Results come as a table, JSON, CycloneDX, SARIF or a template; `--fail-on` sets the exit code for CI, and OpenVEX documents and ignore rules filter findings. It's Apache-2.0, with commercial support and Anchore Enterprise from Anchore; compare [Trivy](https://talira.ai/catalog/trivy-bwebatvr.md) and [Docker Scout](https://talira.ai/catalog/docker-scout-5b24vys8.md).

## Links

- Website: https://oss.anchore.com/docs/guides/vulnerability/
- GitHub: https://github.com/anchore/grype
- Docs: https://oss.anchore.com/docs/guides/vulnerability/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/grype>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/grype>[^2]

## Problems it solves

- scan a container image for known CVEs before we push it to production
- fail the CI build when an image has a critical or high severity vulnerability
- check an SBOM we already generated for vulnerable packages without rescanning the image
- find vulnerable npm, PyPI, Maven, Go and Cargo dependencies in a project directory
- upload container vulnerability findings to GitHub code scanning as SARIF
- prioritise which CVEs to fix first using exploit likelihood and known-exploited lists
- suppress vulnerabilities that don't affect us with a VEX document instead of ad-hoc ignore lists
- only show vulnerabilities that already have a fix available
- a free open source alternative to commercial container image scanners
- scan images straight from a registry, a local Docker daemon or an OCI archive
- explain why a specific CVE was reported for my image
- import a vulnerability database file instead of having the scanner download it at scan time

## Features

- scans container images (Docker, OCI, Singularity), directories, and SBOMs (sbom: scheme or piped Syft JSON)
- scans images from a local containers-storage store on Linux
- OS package support: Alpine, Debian, Ubuntu, RHEL, Oracle Linux, Amazon Linux, Wolfi, Chainguard, SUSE and more
- language ecosystems: Ruby, Java, JavaScript, Python, .NET, Go, PHP, Rust and more
- data from OS vendor feeds, GitHub Security Advisories, NVD and Bitnami, enriched with EPSS and CISA KEV
- output: table, JSON, CycloneDX (XML and JSON), SARIF, Go templates
- --fail-on severity threshold sets exit code 2
- --only-fixed, --only-notfixed and --ignore-states filters
- OpenVEX documents with --vex
- grype explain for CVE IDs
- grype db commands: check, update, import, diff, search, status, providers
- database checked and downloaded automatically, published free by Anchore
- installs via script, Docker, Homebrew, MacPorts, Winget, Scoop, Snap, Arch package, .deb and .rpm

## Limitations

- Scans fail with a stale vulnerability database: by default Grype fails when its database is more than 5 days old[^3]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.77 out of 1.
Signals: maintenance 1.00, adoption 0.82, momentum 0.68, community 0.89, backing 0.55, extensibility 0.20.

- last commit 5 days ago
- 142 commits in the last 90 days
- latest release v0.122.1 5 days ago
- 13.3k GitHub stars
- 167 contributors
- backed by Anchore
- funding: Series A, 2020

## Related

- Works with [Syft](https://talira.ai/catalog/syft-13anekq8.md)

## Alternatives

- [Trivy](https://talira.ai/catalog/trivy-bwebatvr.md): Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
- [Docker Scout](https://talira.ai/catalog/docker-scout-5b24vys8.md): Finds vulnerabilities, outdated packages and compliance problems in container images
- [Clair](https://talira.ai/catalog/clair-b4j2b3n4.md): Vulnerability Static Analysis for Containers
- [bundler-audit](https://talira.ai/catalog/bundler-audit-j9mgvgvk.md): Patch-level verification for Bundler
- [OWASP Dependency-Check](https://talira.ai/catalog/owasp-dependency-check-gwgar92j.md): Software composition analysis that finds publicly disclosed vulnerabilities in a project's dependencies
- [debsecan](https://talira.ai/catalog/debsecan-t0yw9t2w.md): Debian Security Analyzer: lists the vulnerabilities that affect a particular Debian installation

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^3]: https://oss.anchore.com/docs/guides/vulnerability/database/ (checked 20 Nov 2026)
[^4]: https://github.com/anchore/grype/blob/main/LICENSE (checked 20 Nov 2026)
[^5]: https://anchore.com/opensource/ (checked 20 Nov 2026)
[^6]: https://github.com/anchore/grype (checked 20 Nov 2026)
[^7]: https://oss.anchore.com/docs/installation/grype/ (checked 20 Nov 2026)
[^8]: https://prnewswire.com/news-releases/anchore-raises-20m-series-a-to-advance-devsecops-workflows-analysis-and-security-300991032.html (checked 20 Nov 2026)
