Skip to content

tqdm CLI arguments injection attack

Low
casperdcl published GHSA-g7vv-2v7x-gj9p May 2, 2024

Package

pip tqdm (pip)

Affected versions

>= 4.4.0

Patched versions

4.66.3

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:

python -m tqdm --manpath="\" + str(exec(\"import os\nos.system('echo hi && killall python3')\")) + \""

Patches

4e613f8 released in tqdm>=4.66.3

Workarounds

None

References

Severity

Low
3.9
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

CVE ID

CVE-2024-34062

Weaknesses

No CWEs

Credits