NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-34062: tqdm CLI arguments injection attack

lowCVSS 3.1 3.9GHSA-g7vv-2v7x-gj9p

Impact Any optional non-boolean CLI arguments (e.g. --delim, --buf-size, --manpath) are passed through python's eval, allowing arbitrary code execution. Example: 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

Published May 3, 2024 · Updated Jun 10, 2024

Affected packages

tqdm

Ecosystem
PyPI
Affected
>= 4.4.0, < 4.66.3
Fixed in
4.66.3
Check
pip show tqdm

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to CopperEagle.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology