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.

Severity (CVSS 3.1)4.8Medium
Exploit odds (30 days)0.4%top 62.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-tqdm4.66.4-r0ALPINE-CVE-2024-34062
Alpine:v3.21py3-tqdm4.66.4-r0ALPINE-CVE-2024-34062
Alpine:v3.22py3-tqdm4.66.4-r0ALPINE-CVE-2024-34062
Alpine:v3.23py3-tqdm4.66.4-r0ALPINE-CVE-2024-34062
Alpine:v3.24py3-tqdm4.66.4-r0ALPINE-CVE-2024-34062
Debian:12tqdmno fix listedDEBIAN-CVE-2024-34062
Debian:13tqdm4.66.4-1DEBIAN-CVE-2024-34062
Debian:14tqdm4.66.4-1DEBIAN-CVE-2024-34062
PyPItqdm4.66.3PYSEC-2026-1976
PyPItqdm4.66.3GHSA-g7vv-2v7x-gj9p

Affected products (as reported)

VendorProductVersions
tqdm tqdm >= 4.4.0, < 4.66.3

Weakness: CWE-74 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

References