VDB

CVE-2021-3013

CVE-2021-3013 PUBLISHED CVSS 9.800000190734863 CRITICAL

OS command injection in ripgrep

Reported by mitre · Published June 11, 2021

ripgrep is fixed in 13.0.0 (crates.io)

ripgrep before 13 on Windows allows attackers to trigger execution of arbitrary programs from the current working directory via the -z/--search-zip or --pre flag.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ripgrepcrates.io13.0.0
grep-clicrates.io0.1.6
ripgrepripgrep_project13.0.0

Risk scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
crates.ioripgrep0
crates.iogrep-cli0
n/an/a*
archripgrep12.1.1-1

Timeline

  • Jun 11, 2021 CVE Published
  • Jun 12, 2021 EPSS Score (30 in total, the first dated here)
  • Nov 21, 2024 CVE Updated
  • Feb 28, 2025 PoC Published
  • Mar 18, 2026 Security Advisory
  • Aug 4, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3013
vulnetix vdb fixes CVE-2021-3013

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3013/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›