{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3013","id":"CVE-2021-3013","title":"OS command injection in ripgrep","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.","descriptionLong":"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.","published":"2021-06-11T11:19:37.000Z","updated":"2026-10-20T10:54:39.897832599Z","reserved":"2021-01-04T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"ripgrep","purl":"pkg:cargo/ripgrep","ranges":["<13.0.0"],"fixed":["13.0.0"],"advisory":"GHSA-g4xg-fxmg-vcg5"},{"ecosystem":"crates.io","name":"grep-cli","purl":"pkg:cargo/grep-cli","ranges":["<0.1.6",">=0.0.0-0 <0.1.6"],"fixed":["0.1.6"],"advisory":"GHSA-g4xg-fxmg-vcg5"}],"cwes":["CWE-78"],"aliases":["GHSA-g4xg-fxmg-vcg5","RUSTSEC-2021-0071"],"references":[{"url":"https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/BurntSushi/ripgrep/blob/e48a17e1891e1ea9dd06ba0e48d5fb140ca7c0c4/CHANGELOG.md","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3013","tags":["advisory"]},{"url":"https://github.com/BurntSushi/ripgrep/issues/1773","tags":["web","report"]},{"url":"https://github.com/BurntSushi/ripgrep","tags":["package"]},{"url":"https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#1300-2021-06-12","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0071.html","tags":["web","advisory"]},{"url":"https://crates.io/crates/grep-cli","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01934,"epssPercentile":0.80494,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3013","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3013","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3013","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-g4xg-fxmg-vcg5","ok":true,"note":"GHSA-g4xg-fxmg-vcg5"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3013","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}