CVE-2024-34062 json
tqdm CLI arguments injection attack
published 2024-05-03 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-1621 , GHSA-g7vv-2v7x-gj9p , PYSEC-2026-1976
- cvss
- 4.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi tqdm 4.66.3
- tqdm_project tqdm 4.66.3
- tqdm Debian 14, Debian 13 4.66.4-1
debian advisories DEBIAN-CVE-2024-34062
- tqdm Ubuntu Pro 22.04 LTS 4.57.0-2ubuntu0.1~esm2
- tqdm Ubuntu Pro 24.04 LTS 4.66.2-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-34062
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-tqdm SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Python 3 15 SP6 +6 more 4.66.4-150400.9.12.1
suse advisories SUSE-SU-2024:1872-1
- py3-tqdm Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 4.66.4-r0
alpine advisories ALPINE-CVE-2024-34062
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-tqdm Azure Linux 3.0 4.66.2-2
- python-tqdm CBL-Mariner 2.0 4.63.1-3
azure linux advisories AZL-40285AZL-40307
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- github.com/tqdm/tqdm@4e613f8 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-34062 updated cvss 7.3
python-tqdm: non-boolean CLI arguments may lead to local code execution
-
Red Hat Quay 3 quay/quay-rhel8affected: workaround, no fix available
-
Red Hat Enterprise Linux 8 rust-srpm-macros Red Hat Enterprise Linux 9 rust-srpm-macrosnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 3.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| OSV | 3.1 | 3.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | tqdm | >=4.4.0, <4.66.3 |
4.66.3 |
Affected products
- tqdm tqdm
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
-
github.com
/tqdm/tqdm/commit/4e613f84ed2ae029559f539464df83fa91feb316
web
-
github.com
/tqdm/tqdm/security/advisories/GHSA-g7vv-2v7x-gj9p
web
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/VA337CYUS4SLRFV2P6MX6MZ2LKFURKJC/
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/QRECVQCCESHBS3UJOWNXQUIX725TKNY6/
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/PA3GIGHPWAHCTT4UF57LTPZGWHAX3GW6/
-
nvd.nist.gov
/vuln/detail/CVE-2024-34062
advisory
-
github.com
/tqdm/tqdm
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/PA3GIGHPWAHCTT4UF57LTPZGWHAX3GW6
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/QRECVQCCESHBS3UJOWNXQUIX725TKNY6
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/VA337CYUS4SLRFV2P6MX6MZ2LKFURKJC
web
-
pypi.org
/project/tqdm
package
-
github.com
/advisories/GHSA-g7vv-2v7x-gj9p
advisory
Sources
- CVE List CVE-2024-34062
- GitHub Advisory GHSA-g7vv-2v7x-gj9p
- NVD CVE-2024-34062
- OSV PYSEC-2026-1976
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.