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: 7.5 [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]
CVE-ID: CVE-2021-3013
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

ripgrep

How to mitigate CVE-2021-3013

Install updates from vendor's website.

ripgrep - update to 13.0.0

External References

Related Security Bulletins