SecurityContext

CVE-2021-36753: sharkdp BAT - Command Injection

  • Cve: CVE-2021-36753
  • Name: sharkdp BAT - Command Injection
  • Description: sharkdp BAT before 0.18.2 executes less.exe from the current working directory.
  • Impact: Attackers can execute arbitrary code by placing malicious less.exe in the working directory, leading to remote code execution.
  • Remediation: Update to version 0.18.2 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to place malicious less.exe in the working directory
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00356
  • Epss percentile: 0.29677
  • Assignee: [email protected]
  • Published at: 2021-07-15T20:15:11Z
  • Age in days: 1958
  • Modified at: 2026-06-17T03:59:06Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-36753
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-427Uncontrolled Search Path Element

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/sharkdp/bat/commit/bf2b2df9c9e218e35e5a38ce3d03cffb7c363956Patch, Third Party Advisory
https://github.com/sharkdp/bat/pull/1724Patch, Third Party Advisory
https://github.com/sharkdp/bat/releases/tag/v0.18.2Release Notes, Third Party Advisory
https://vuln.ryotak.me/advisories/53Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
bat_project:bat< 0.18.2nonvd/v1/products/bat_project/bat

Projects

RepositoryLink kindsIndexedUrl
sharkdp/batcommit, package, pull, releasesyes/v1/repositories/sharkdp/bat

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts