CVE-2024-34062
JSON

4.8medium

tqdm CLI arguments injection attack

Severity
4.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.44% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-g7vv-2v7x-gj9pPYSEC-2026-1976

Description

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.

Affected

Product or packageVersionsReported by
tqdm tqdm>= 4.4.0, < 4.66.3CVE List
tqdm (PyPI)from 4.4.0 before 4.66.3GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M4.8medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
GitHub3.9low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
PyPA Advisory Database3.9low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Classification

CWE-74

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
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
NVD (es)

tqdm es una barra de progreso de código abierto para Python y CLI. Cualquier argumento CLI opcional no booleano (por ejemplo, `--delim`, `--buf-size`, `--manpath`) se pasa a través del `eval` de Python, lo que permite la ejecución de código arbitrario. Este problema solo se puede explotar localmente y se solucionó en la versión 4.66.3. Se recomienda a todos los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.

References

https://github.com/tqdm/tqdm/security/advisories/GHSA-g7vv-2v7x-gj9pweb
https://github.com/tqdm/tqdm/commit/4e613f84ed2ae029559f539464df83fa91feb316web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VA337CYUS4SLRFV2P6MX6MZ2LKFURKJC/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QRECVQCCESHBS3UJOWNXQUIX725TKNY6/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PA3GIGHPWAHCTT4UF57LTPZGWHAX3GW6/
https://nvd.nist.gov/vuln/detail/CVE-2024-34062advisory
https://github.com/tqdm/tqdmpackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PA3GIGHPWAHCTT4UF57LTPZGWHAX3GW6web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QRECVQCCESHBS3UJOWNXQUIX725TKNY6web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VA337CYUS4SLRFV2P6MX6MZ2LKFURKJCweb
https://pypi.org/project/tqdmpackage
https://github.com/advisories/GHSA-g7vv-2v7x-gj9padvisory

Sources

SourceRecordLicence
CVE ListCVE-2024-34062 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-g7vv-2v7x-gj9p changed 2026-09-10CC-BY-4.0
NVDCVE-2024-34062 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1976 changed 2026-07-07CC-BY-4.0