Advisory

RUSTSEC-2021-0106

Also known as: CVE-2021-36753, GHSA-p24j-h477-76q3

Summary

Uncontrolled Search Path Element in sharkdp/bat

Details

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

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-07-15 12:00 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

bat

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.18.2 (semver)

Fixed versions

0.18.2

Fix

  • Fixed version 0.18.2
    cargo update -p bat --precise 0.18.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences