Command Injection in ripgrep - CVE-2021-3013

 

Command Injection in ripgrep - CVE-2021-3013

Published: June 14, 2021


Vulnerability identifier: #VU54081
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-3013
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: BurntSushi (Andrew Gallant)
Affected software:
ripgrep

Detailed vulnerability description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to improper input validation. A remote attacker can execute arbitrary programs from the current working directory via the -z/--search-zip or --pre flag.


How to mitigate CVE-2021-3013

Install updates from vendor's website.

Sources