CVE-2024-34062: tqdm CLI arguments injection attack

Published May 3, 2024
·
Updated

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

sh 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

Other sources

tqdm could allow a local authenticated attacker to execute arbitrary code on the system, caused by a CLI arguments injection . By sending a specially crafted request, an attacker could exploit this vulnerability to execute arbitrary code on the system.

IBM

tqdm is an open source progress bar for Python and CLI. Any optional non-boolean CLI arguments (e.g. --delim, --buf-size, --manpath) are passed through python's eval, allowing arbitrary code execution. This issue is only locally exploitable and had been addressed in release version 4.66.3. All users are advised to upgrade. There are no known workarounds for this vulnerability.

NVD

Affected Software

8 affected componentsFixes available
pip/tqdm>=4.4.0<4.66.3
4.66.3
debian/tqdm<=4.57.0-2, <=4.64.1-1
4.67.1-1
IBM Cloud Pak for Security<=1.10.0.0 - 1.10.11.0
IBM QRadar Suite Software<=1.10.12.0 - 1.10.22.0
Microsoft cbl2 python-tqdm 4.63.1-3
Microsoft azl3 python-tqdm 4.66.2-2
Microsoft azl3 conda 24.1.2-2
Microsoft azl3 conda 4.11.0-1

Event History

May 3, 2024
CVE Published
via MITRE·09:55 AM
Data Sourced
via MITRE·09:55 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·07:33 PM
May 7, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Jan 17, 2025
Data Sourced
via Launchpad·12:12 AM
Description
Jan 25, 2025
Data Sourced
via Ubuntu·12:12 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-34062?

CVE-2024-34062 has a high severity rating due to the potential for arbitrary code execution via non-boolean CLI arguments.

2

How do I fix CVE-2024-34062?

To fix CVE-2024-34062, upgrade to tqdm version 4.66.3 or later.

3

Which software is affected by CVE-2024-34062?

CVE-2024-34062 affects versions of tqdm from 4.4.0 to 4.66.3, as well as specific versions of IBM Cloud Pak for Security and QRadar Suite Software.

4

Is there a workaround for CVE-2024-34062?

There are no known effective workarounds for CVE-2024-34062; the best solution is to upgrade to a secured version.

5

What type of vulnerability is CVE-2024-34062?

CVE-2024-34062 is classified as a code injection vulnerability, enabling arbitrary code execution through manipulated CLI arguments.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203