CVE-2021-3013Ripgrep Project Ripgrep
Critical 9.8 No auth needed
Follow: this CVE · Ripgrep Project · Ripgrep Project Ripgrep We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Ripgrep.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| ripgrep_project | ripgrep | < 13.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory