Skip to content
Fencer Vulns
critical 9.8

CVE-2021-3013 json

OS command injection in ripgrep

published 2021-06-11 5 y ago modified 2026-06-17 4 mo ago also GHSA-g4xg-fxmg-vcg5 , RUSTSEC-2021-0071 , EUVD-2021-1713

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.9%
EPSS 1.9% chance of exploitation in 30 days, percentile 80%
public exploits
0
none known

Summary

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.

Patch / fix

  • crates.io ripgrep 13.0.0
  • crates.io grep-cli 0.1.6
  • ripgrep_project ripgrep 13.0.0
  • ripgrep openSUSE Tumbleweed 13.0.0-2.2

opensuse advisories openSUSE-SU-2024:11300-1

Exploit prediction

1.93% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
crates.io ripgrep
<13.0.0
13.0.0
crates.io grep-cli
<0.1.6
>=0.0.0-0, <0.1.6
0.1.6

Classification

Weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.