burntsushi/ripgrep · Security
OS command injection in ripgrep
- GHSA ID
- GHSA-g4xg-fxmg-vcg5
- CVE ID
- CVE-2021-3013
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3013 ↗
- https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#1300-2021-06-12 ↗
- https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md ↗
- https://github.com/BurntSushi/ripgrep/blob/e48a17e1891e1ea9dd06ba0e48d5fb140ca7c0c4/CHANGELOG.md ↗
- https://rustsec.org/advisories/RUSTSEC-2021-0071.html ↗
- https://github.com/BurntSushi/ripgrep/issues/1773 ↗
- https://github.com/advisories/GHSA-g4xg-fxmg-vcg5 ↗