Advisory

GHSA-p24j-h477-76q3

Also known as: CVE-2021-36753, RUSTSEC-2021-0106

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: The source's own band: HIGH

Dates

Published
2021-08-25 21:01 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

bat

crates.io · All systems

Affected

  • introduced 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences