Command execution in ripgrep



Published: 2021-06-14
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-3013
CWE-ID CWE-77
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
ripgrep
Universal components / Libraries / Software for developers

Vendor BurntSushi (Andrew Gallant)

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Command Injection

EUVDB-ID: #VU54081

Risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-3013

CWE-ID: CWE-77 - Command injection

Exploit availability: No

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

ripgrep: 0.0.1 - 12.1.1

External links

http://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###