CVE-2021-3013 OS command injection in ripgrep
CriticalCVSS 9.8
EPSS 1.9%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
5 packages: 3 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rust-ripgrep(Ubuntu 20.04) | = 0.10.0-2build1; = 11.0.2-1; = 11.0.2-1build1; = 11.0.2-1ubuntu0.1 +1 more | No fix listed | No fix yet |
| ubuntu/rust-ripgrep(Ubuntu 22.04) | = 12.1.1-1; = 13.0.0-2; = 13.0.0-2ubuntu0.1; All versions | No fix listed | No fix yet |
| crates.io grep-cli(crates.io) | < 0.1.6; >= 0.0.0-0, < 0.1.6 | 0.1.6 | Fixed |
| crates.io ripgrep(crates.io) | < 13.0.0 | 13.0.0 | Fixed |
| ripgrep project ripgrep | < 13.0.0 | 13.0.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io ripgrep(crates.io) | < 13.0.0 | 13.0.0 |
| crates.io grep-cli(crates.io) | < 0.1.6 | 0.1.6 |
| ubuntu/rust-ripgrep(Ubuntu:22.04) | All versions | No fix listed |
| crates.io grep-cli(crates.io) | >= 0.0.0-0, < 0.1.6 | 0.1.6 |
| ripgrep project ripgrep | < 13.0.0 | 13.0.0 |
| ubuntu/rust-ripgrep(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/rust-ripgrep(Ubuntu:20.04) | = 0.10.0-2build1 | No fix listed |
| ubuntu/rust-ripgrep(Ubuntu:20.04) | = 11.0.2-1 | No fix listed |
| ubuntu/rust-ripgrep(Ubuntu:20.04) | = 11.0.2-1build1 | No fix listed |
| ubuntu/rust-ripgrep(Ubuntu:20.04) | = 11.0.2-1ubuntu0.1 | No fix listed |
| ubuntu/rust-ripgrep(Ubuntu:22.04) | = 12.1.1-1 | No fix listed |
| ubuntu/rust-ripgrep(Ubuntu:22.04) | = 13.0.0-2 | No fix listed |
| ubuntu/rust-ripgrep(Ubuntu:22.04) | = 13.0.0-2ubuntu0.1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com release-notes third-party-advisory
- rustsec.org vendor-advisory
- github.com issue-tracking
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- github.com product
- crates.io product
- Debian Security Tracker CVE-2021-3013 vendor-advisory