Advisory

PYSEC-2026-1976

Also known as: CVE-2024-34062, GHSA-g7vv-2v7x-gj9p

Summary

tqdm CLI arguments injection attack

Details

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

Severity

Low Basis: CVSS v3 score 3.9, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Dates

Published
2026-07-07 11:45 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

tqdm

PyPI · All systems

Affected

  • introduced 4.4.0, fixed 4.66.3 (ecosystem)

Fixed versions

4.66.3

Fix

  • Fixed version 4.66.3
    pip install --upgrade tqdm==4.66.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences