{"id":"GHSA-g4xg-fxmg-vcg5","summary":"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.","aliases":["CVE-2021-3013","RUSTSEC-2021-0071"],"modified":"2023-11-08T04:05:44.745722Z","published":"2021-08-05T19:31:55Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-06-14T19:32:57Z","nvd_published_at":"2021-06-11T12:15:00Z","cwe_ids":["CWE-78"],"severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3013"},{"type":"WEB","url":"https://github.com/BurntSushi/ripgrep/issues/1773"},{"type":"PACKAGE","url":"https://github.com/BurntSushi/ripgrep"},{"type":"WEB","url":"https://github.com/BurntSushi/ripgrep/blob/e48a17e1891e1ea9dd06ba0e48d5fb140ca7c0c4/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#1300-2021-06-12"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0071.html"}],"affected":[{"package":{"name":"ripgrep","ecosystem":"crates.io","purl":"pkg:cargo/ripgrep"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"13.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-g4xg-fxmg-vcg5/GHSA-g4xg-fxmg-vcg5.json"}},{"package":{"name":"grep-cli","ecosystem":"crates.io","purl":"pkg:cargo/grep-cli"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-g4xg-fxmg-vcg5/GHSA-g4xg-fxmg-vcg5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}