CRITICAL9.8
GHSA-g4xg-fxmg-vcg5
OS command injection in ripgrep
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/ripgrep
Introduced in:
0Fixed in: 13.0.0Upgrade ripgrep to 13.0.0 or newer (ecosystem crates.io).
crates.io/grep-cli
Introduced in:
0Fixed in: 0.1.6Upgrade grep-cli to 0.1.6 or newer (ecosystem crates.io).
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3013[ADVISORY]
- https://github.com/BurntSushi/ripgrep/issues/1773[WEB]
- https://github.com/BurntSushi/ripgrep[PACKAGE]
- https://github.com/BurntSushi/ripgrep/blob/e48a17e1891e1ea9dd06ba0e48d5fb140ca7c0c4/CHANGELOG.md[WEB]
- https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md[WEB]
- https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#1300-2021-06-12[WEB]
- https://rustsec.org/advisories/RUSTSEC-2021-0071.html[WEB]