{"id":"CVE-2021-36753","aliases":["CVE-2021-36753","GHSA-p24j-h477-76q3","RUSTSEC-2021-0106"],"related":[],"kind":"vulnerability","state":"published","title":"Uncontrolled Search Path Element in sharkdp/bat","summary":"sharkdp BAT before 0.18.2 executes less.exe from the current working directory.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"sharkdp BAT before 0.18.2 executes less.exe from the current working directory.","source":"cvelist"},{"lang":"en","text":"bat on windows before 0.18.2 executes programs named less.exe from the current working directory. This can lead to unintended code execution.","format":"markdown","source":"ghsa"},{"lang":"es","text":"sharkdp BAT versiones anteriores a 0.18.2, ejecuta el archivo less.exe desde el directorio de trabajo actual","source":"nvd"}],"published":"2021-07-15T12:00:00.000Z","modified":"2026-06-17T03:59:06.717Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-427"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.18.2"}],"ecosystem":"crates.io","package":"bat","purl":"pkg:cargo/bat","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.18.2"}],"ecosystem":"crates.io","package":"bat","purl":"pkg:cargo/bat","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.18.2"}],"vendor":"bat_project","product":"bat","cpe":"cpe:2.3:a:bat_project:bat:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sharkdp/bat/releases/tag/v0.18.2","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sharkdp/bat/pull/1724","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sharkdp/bat/commit/bf2b2df9c9e218e35e5a38ce3d03cffb7c363956","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://vuln.ryotak.me/advisories/53","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36753","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/sharkdp/bat","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0106.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/bat","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-36753","url":"https://www.cve.org/CVERecord?id=CVE-2021-36753","licence":"CVE Terms of Use","modified":"2024-08-04T01:01:59.399Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p24j-h477-76q3","url":"https://github.com/advisories/GHSA-p24j-h477-76q3","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:15.992Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0106","url":"https://rustsec.org/advisories/RUSTSEC-2021-0106.html","licence":"CC0-1.0","modified":"2023-11-08T04:06:15.992Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-36753","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36753","licence":"Public domain","modified":"2026-06-17T03:59:06.717Z"}],"updatedAt":"2026-11-25T22:58:02.698Z","epss":{"score":0.00356,"percentile":0.31351,"date":"2026-12-01T12:00:22.000Z"}}