Live threats

All CVEs / Ripgrep Project

CVE-2021-3013Ripgrep Project Ripgrep

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.9%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
Jun 11, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ripgrep.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io grep-cli < 0.1.6 0.1.6 cargo update -p grep-cli --precise 0.1.6
crates.io grep-cli ≥ 0.0.0-0 < 0.1.6 0.1.6 cargo update -p grep-cli --precise 0.1.6
crates.io ripgrep < 13.0.0 13.0.0 cargo update -p ripgrep --precise 13.0.0

Per OSV / GitHub Advisories (GHSA-g4xg-fxmg-vcg5, RUSTSEC-2021-0071). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ripgrep_projectripgrep< 13.0.0

Official sources

References

Links published by the sources. Open them with care.