CVE-2021-3013Published Jun 11, 2021 · Jun 11Updated Oct 20
OS command injection in ripgrep
Critical9.8Fix available
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.
From the CVE record · mitre
ripgrep before 13.0.0 on Windows can execute arbitrary programs from the current working directory when the -z/--search-zip or --pre flag is used. The input does not specify whether exploitation requires network access, authentication, or user interaction.
Engineers using ripgrep versions before 13.0.0 or the crates.io grep-cli package before 0.1.6 should check their installations.