Vulnerability · Published May 3, 2024 · Assigned by GitHub_M
CVE-2024-34062tqdm CLI arguments injection attack
Medium 4.8
In plain English
A medium-severity injection in tqdm from tqdm. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-tqdm | 4.66.4-r0 | ALPINE-CVE-2024-34062 |
| Alpine:v3.21 | py3-tqdm | 4.66.4-r0 | ALPINE-CVE-2024-34062 |
| Alpine:v3.22 | py3-tqdm | 4.66.4-r0 | ALPINE-CVE-2024-34062 |
| Alpine:v3.23 | py3-tqdm | 4.66.4-r0 | ALPINE-CVE-2024-34062 |
| Alpine:v3.24 | py3-tqdm | 4.66.4-r0 | ALPINE-CVE-2024-34062 |
| Debian:12 | tqdm | no fix listed | DEBIAN-CVE-2024-34062 |
| Debian:13 | tqdm | 4.66.4-1 | DEBIAN-CVE-2024-34062 |
| Debian:14 | tqdm | 4.66.4-1 | DEBIAN-CVE-2024-34062 |
| PyPI | tqdm | 4.66.3 | PYSEC-2026-1976 |
| PyPI | tqdm | 4.66.3 | GHSA-g7vv-2v7x-gj9p |
Affected products (as reported)
Weakness: CWE-74 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
References
- https://github.com/tqdm/tqdm/security/advisories/GHSA-g7vv-2v7x-gj9p x_refsource_CONFIRM
- https://github.com/tqdm/tqdm/commit/4e613f84ed2ae029559f539464df83fa91feb316 x_refsource_MISC
- 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/