GitHub Advisoryadvisory · crates.io
GHSA-g4xg-fxmg-vcg5 OS command injection in ripgrep
CRITICAL
Official page ↗
- Aliases
- CVE-2021-3013
- Ecosystem
- crates.io
- Packages
- ripgrep, grep-cli
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-78
- Reviewed
- 2021-06-14
Affected packages
• crates.io ripgrep: < 13.0.0 → fixed in 13.0.0
• crates.io grep-cli: < 0.1.6 → fixed in 0.1.6
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.
Related
Alias · CVE (1)
- CVE-2021-3013 ripgrep before 13 on Windows allows attackers to trigger execution of arbitrary programs from the current working directory via the… vulnerability
Weakness · CWE (1)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
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