PROVIDER - Vulnerability scanning for images and filesystems

Grype

Grype scans images, directories and SBOMs, reusing Syft inventories with an auto-updating vulnerability database and severity thresholds for CI gates across 5+ output formats; it gives no fix advice and coverage depends on upstream feed timing.

Developer Tools United States 2026.11.19
4.3pts

Service Overview

Grype is Anchore's open source vulnerability scanner, designed to pair with the same project's Syft SBOM generator. It reads an image or dependency inventory, compares it with a vulnerability database and reports findings with severities.

In the development tools category it covers supply chain scanning: unlike Hadolint, which reviews Dockerfile style, Grype asks what packages an image actually contains and whether they carry known vulnerabilities.

Key Strengths

  • Flexible targets: images, directories and SBOMs
  • Syft synergy: reuses SBOMs to avoid duplicate parsing
  • Automatic database updates: offline runs fall back to a local cache
  • Gate friendly: failure thresholds by severity
  • Rich output: 5+ formats fit different systems

Product Ecosystem

Platform capabilities

Image and directory scanning, SBOM consumption, database updates, severity thresholds, ignore rules and multi-format reports.

Integrations

Works with Syft, GitHub Actions, GitLab CI, Kubernetes admission control and Anchore Enterprise.

Typical scenarios

Pre-release image scans, CI security gates, SBOM vulnerability checks and base image version governance.

Limitations

  • Point-in-time data: new disclosures require rescans
  • No fix advice: version selection stays manual
  • Slower first runs: multi-layer images take time
  • Limited advanced policy: complex governance needs the commercial edition

Use Cases

  • Image release gates (★★★★★): cheap in combination with CI
  • SBOM vulnerability checks (★★★★★): consume inventories directly
  • Base image governance (★★★★☆): compare candidates by finding counts
  • Runtime protection (★★☆☆☆): pair with runtime security products

Pricing

Item Price Notes
Grype itself $0 Apache 2.0 open source, commercial use allowed
Vulnerability database $0 Public feeds sync for free
Anchore Enterprise Contact sales Policy engine and central governance

FAQ

How does Grype differ from Trivy?

Capabilities are close; Grype integrates tightly with the Syft SBOM ecosystem, while Trivy covers more ground including configuration scanning.

Can I scan an SBOM without the image?

Yes, pass sbom: as the input to compare an inventory against the database.

How do I ignore accepted risks?

Add ignore rules by CVE identifier or package name in .grype.yaml.

How does offline use work?

Update the database beforehand and point scans at the local database path.

Code Examples

# Scan an image with a severity threshold
grype nginx:1.25 --fail-on high

# Generate an SBOM first, then scan it for reuse
syft nginx:1.25 -o cyclonedx-json=sbom.json
grype sbom:sbom.json -o sarif > report.sarif

# Scan a local directory
grype dir:. --only-fixed
# .grype.yaml
fail-on-severity: high
ignore:
  - vulnerability: CVE-2024-0000
    reason: "unreachable code path"

Community & Resources

Visit Grype Website → https://github.com/anchore/grype
Visit Website ↗