Arbitrary Code Execution Affecting ripgrep package, versions <13.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.71% (72nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-RIPGREP-1304914
  • published13 Jun 2021
  • disclosed13 Jun 2021
  • creditUnknown

Introduced: 13 Jun 2021

CVE-2021-3013  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade ripgrep to version 13.0.0 or higher.

Overview

ripgrep is a ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern.

Affected versions of this package are vulnerable to Arbitrary Code Execution. Running ripgrep with either the -z/--search-zip or --pre flags may lead to running arbitrary executables from the current directory. NOTE: This only affects Windows users.

CVSS Base Scores

version 3.1