tqdm CLI arguments injection attack
Description
Published by the National Vulnerability Database
May 3, 2024
Published to the GitHub Advisory Database
May 3, 2024
Reviewed
May 3, 2024
Last updated
May 3, 2024
Impact
Any optional non-boolean CLI arguments (e.g.
--delim
,--buf-size
,--manpath
) are passed through python'seval
, allowing arbitrary code execution. Example:python -m tqdm --manpath="\" + str(exec(\"import os\nos.system('echo hi && killall python3')\")) + \""
Patches
tqdm/tqdm@4e613f8 released in
tqdm>=4.66.3
Workarounds
None
References
References