Command Injection in ripgrep - CVE-2021-3013

 

Command Injection in ripgrep - CVE-2021-3013

Published: June 14, 2021


Vulnerability identifier: #VU54081
CSH Severity: Medium
CVSSv4.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
Vulnerable software:
ripgrep
Software vendor:
BurntSushi (Andrew Gallant)

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.


Remediation

Install updates from vendor's website.

External links