Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-3013 EUVD-2021-1713GHSA-g4xg-fxmg-vcg5RUSTSEC-2021-0071

OS command injection in ripgrep

Published Jun 11, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

ripgrep before 13 on Windows allows attackers to trigger execution of arbitrary programs from the current working directory via the -z/--search-zip or --pre flag.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS rust-ripgrep No fix yet —
Ubuntu 20.04 LTS rust-ripgrep No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ripgrep 13.0.0-2.2 openSUSE-SU-2024:11300-1

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io grep-cli < 0.1.6 0.1.6 GHSA-g4xg-fxmg-vcg5
crates.io grep-cli >= 0.0.0-0, < 0.1.6 0.1.6 RUSTSEC-2021-0071
crates.io ripgrep < 13.0.0 13.0.0 GHSA-g4xg-fxmg-vcg5

Advisories 1

References