# CVE-2021-36753: Uncontrolled Search Path Element in sharkdp/bat

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2021-07-15T12:00:00.000Z
- Modified: 2026-06-17T03:59:06.717Z
- Also known as: GHSA-p24j-h477-76q3, RUSTSEC-2021-0106
- Weaknesses: CWE-427
- Assigned by: mitre

## Description

sharkdp BAT before 0.18.2 executes less.exe from the current working directory.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- bat (crates.io): before 0.18.2; from 0.0.0-0 before 0.18.2
- bat_project bat: before 0.18.2

## Every score

- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## 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

- CVE List: [CVE-2021-36753](https://www.cve.org/CVERecord?id=CVE-2021-36753), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-p24j-h477-76q3](https://github.com/advisories/GHSA-p24j-h477-76q3), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0106](https://rustsec.org/advisories/RUSTSEC-2021-0106.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-36753](https://nvd.nist.gov/vuln/detail/CVE-2021-36753), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-36753 · Whole record: https://cve.day/CVE-2021-36753.json · Rebuilt by cve.day 2026-11-25T22:58:02.698Z
