CVE-2021-36753
7.8high
Uncontrolled Search Path Element in sharkdp/bat
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.36% (higher than 31% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-p24j-h477-76q3RUSTSEC-2021-0106
Description
sharkdp BAT before 0.18.2 executes less.exe from the current working directory.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| bat (crates.io) | before 0.18.2, from 0.0.0-0 before 0.18.2 | GitHub Advisory Database, RustSec Advisory Database |
| bat_project bat | before 0.18.2 | NVD |
All scores
| GitHub | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.6medium CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
sharkdp BAT before 0.18.2 executes less.exe from the current working directory.
GitHub Advisory Database
bat on windows before 0.18.2 executes programs named less.exe from the current working directory. This can lead to unintended code execution.
NVD (es)
sharkdp BAT versiones anteriores a 0.18.2, ejecuta el archivo less.exe desde el directorio de trabajo actual
References
| https://github.com/sharkdp/bat/releases/tag/v0.18.2 | release-notes, third-party-advisory, web | |
| https://github.com/sharkdp/bat/pull/1724 | patch, third-party-advisory, web | |
| https://github.com/sharkdp/bat/commit/bf2b2df9c9e218e35e5a38ce3d03cffb7c363956 | patch, 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 | advisory, web | |
| https://crates.io/crates/bat | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-36753 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p24j-h477-76q3 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0106 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-36753 changed 2026-06-17 | Public domain |