CVE-2021-36753
HIGH 7.8CVSS 3.1Uncontrolled Search Path Element in sharkdp/bat
sharkdp BAT before 0.18.2 executes less.exe from the current working directory.
- Published
- 15 Jul 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-427
- Also known as
- GHSA-p24j-h477-76q3RUSTSEC-2021-0106
- Sources
- NVDJSONOSV GHSA-p24j-h477-76q3JSONOSV RUSTSEC-2021-0106JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bat_project | batcpe:2.3:a:bat_project:bat:*:*:*:*:*:rust:*:* |
< 0.18.2 | 0.18.2 |
| OSV | crates.io | bat | < 0.18.2 | 0.18.2 |
| OSV | crates.io | bat | >= 0.0.0-0, < 0.18.2 | 0.18.2 |
References
- https://github.com/sharkdp/bat/commit/bf2b2df9c9e218e35e5a38ce3d03cffb7c363956 · Patch, Third Party Advisory, WEB
- https://github.com/sharkdp/bat/pull/1724 · Patch, Third Party Advisory, WEB
- https://github.com/sharkdp/bat/releases/tag/v0.18.2 · Release Notes, Third Party Advisory, WEB
- https://vuln.ryotak.me/advisories/53 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-36753 · ADVISORY, WEB
- https://github.com/sharkdp/bat · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2021-0106.html · WEB, ADVISORY
- https://crates.io/crates/bat · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 15 Jul 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jul 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)