GHSA-g7vv-2v7x-gj9pLowCVSS 3.9

tqdm CLI arguments injection attack

Published
May 3, 2024
Last Modified
June 10, 2024

🔗 CVE IDs covered (1)

📋 Description

Impact

Any optional non-boolean CLI arguments (e.g. --delim, --buf-size, --manpath) are passed through python's eval, allowing arbitrary code execution. Example:

python -m tqdm --manpath="\" + str(exec(\"import os\nos.system('echo hi && killall python3')\")) + \""

Patches

https://github.com/tqdm/tqdm/commit/4e613f84ed2ae029559f539464df83fa91feb316 released in tqdm>=4.66.3

Workarounds

None

References

  • https://github.com/tqdm/tqdm/releases/tag/v4.66.3

🎯 Affected products1

  • pip/tqdm:>= 4.4.0, < 4.66.3

🔗 References (7)