CVE-2024-34062: tqdm CLI arguments injection attack
Summary
CVE-2024-34062: tqdm CLI arguments injection attack. Affects tqdm versions >= 4.4.0, < 4.66.3. Fixed in 4.66.3. How to fix ↓
Also tracked for
- tqdm · Debian:11
The same CVE-2024-34062 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The tqdm package is a Python library that provides a fast, extensible progress bar for loops and other iterable objects. It is commonly used to visualize the progress of tasks in command-line interfaces. The package offers various features and options to customize the appearance and behavior of the progress bar.
Vulnerability Detail
The vulnerability in tqdm arises from the improper handling of optional non-boolean command-line arguments. These arguments, such as --delim, --buf-size, and --manpath, are passed through Python's eval function, allowing for arbitrary code execution. An attacker can exploit this by injecting malicious code as a command-line argument, leading to unauthorized code execution on the system. For example, an attacker could execute arbitrary commands by manipulating the --manpath argument. This vulnerability poses a significant risk as it enables remote code execution and potential system compromise.
How To Fix
Latest published version: 4.70.1 as of 23 Oct 2026
pip install --upgrade "tqdm==4.70.1"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
4.66.3
This is the first release that contains the fix.
pip install --upgrade "tqdm==4.66.3"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The tqdm package is vulnerable to a CLI arguments injection attack, allowing for arbitrary code execution. It is crucial to update the package to version 4.66.3 or later to mitigate this vulnerability. Failure to do so may result in unauthorized code execution and potential system compromise. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tqdm →
FAQ
tqdm is a Python library that provides a progress bar for loops and iterable objects. It helps visualize the progress of tasks in command-line interfaces.
This vulnerability allows for arbitrary code execution, which can lead to unauthorized access, data breaches, and potential system compromise.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock, and Vulert will analyze it for any open-source vulnerabilities, including this one.
No, there is no known workaround for this vulnerability. It is recommended to update the tqdm package to the latest version.
You can find more information about the patch and the fixed version in the tqdm GitHub repository: https://github.com/tqdm/tqdm/releases/tag/v4.66.3
References
Related vulnerabilities
Recent vulnerabilities recorded for tqdm.