GHSA-g7vv-2v7x-gj9p

tqdm CLI arguments injection attack

En bref

Publiée
Mise à jour
CVE
CVE-2024-34062
Alias
PYSEC-2026-1976
CVSS_V3
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Description

### 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

Paquets affectés

PaquetVersions
PyPI · tqdmintroduced 4.4.0, fixed 4.66.3

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database