Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. bat
  4. ›
  5. CVE-2021-36753

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

August 25, 2021 (updated September 9, 2021)

bat on windows before 0.18.2 executes programs named less.exe from the current working directory. This can lead to unintended code execution.

References

  • github.com/advisories/GHSA-p24j-h477-76q3
  • github.com/sharkdp/bat
  • github.com/sharkdp/bat/commit/bf2b2df9c9e218e35e5a38ce3d03cffb7c363956
  • github.com/sharkdp/bat/pull/1724
  • github.com/sharkdp/bat/releases/tag/v0.18.2
  • nvd.nist.gov/vuln/detail/CVE-2021-36753
  • rustsec.org/advisories/RUSTSEC-2021-0106.html
  • vuln.ryotak.me/advisories/53

Code Behaviors & Features

Detect and mitigate CVE-2021-36753 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.18.2

Fixed versions

  • 0.18.2

Solution

Upgrade to version 0.18.2 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-427: Uncontrolled Search Path Element

Source file

cargo/bat/CVE-2021-36753.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.