Advisory

GHSA-g4xg-fxmg-vcg5

Also known as: CVE-2021-3013, RUSTSEC-2021-0071

Summary

OS command injection in ripgrep

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-05 19:31 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

ripgrep

crates.io · All systems

Affected

  • introduced 0, fixed 13.0.0 (semver)

Fixed versions

13.0.0

Fix

  • Fixed version 13.0.0
    cargo update -p ripgrep --precise 13.0.0

grep-cli

crates.io · All systems

Affected

  • introduced 0, fixed 0.1.6 (semver)

Fixed versions

0.1.6

Fix

  • Fixed version 0.1.6
    cargo update -p grep-cli --precise 0.1.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences