CVE-2021-3013
OS command injection in ripgrep
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| cargo::GitHub Security Advisory Rust | grep-cli, ripgrep | 0.1.6 and 1 more |
Show all 2 entries from 1 source
| Source | Package | Fixed in |
|---|---|---|
| cargo::GitHub Security Advisory Rust | grep-cli | 0.1.6 |
| cargo::GitHub Security Advisory Rust | ripgrep | 13.0.0 |
References
- https://github.com/BurntSushi/ripgrep
- https://github.com/BurntSushi/ripgrep/blob/e48a17e1891e1ea9dd06ba0e48d5fb140ca7c0c4/CHANGELOG.md
- https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md
- https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#1300-2021-06-12
- https://github.com/BurntSushi/ripgrep/issues/1773
- https://nvd.nist.gov/vuln/detail/CVE-2021-3013
- https://rustsec.org/advisories/RUSTSEC-2021-0071.html