{"id":"CVE-2024-34062","aliases":["CVE-2024-34062","GHSA-g7vv-2v7x-gj9p","PYSEC-2026-1976"],"related":[],"kind":"vulnerability","state":"published","title":"tqdm CLI arguments injection attack","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nAny optional non-boolean CLI arguments (e.g. `--delim`, `--buf-size`, `--manpath`) are passed through python's `eval`, allowing arbitrary code execution. Example:\n\n```sh\npython -m tqdm --manpath=\"\\\" + str(exec(\\\"import os\\nos.system('echo hi && killall python3')\\\")) + \\\"\"\n```\n\n### Patches\nhttps://github.com/tqdm/tqdm/commit/4e613f84ed2ae029559f539464df83fa91feb316 released in `tqdm>=4.66.3`\n\n### Workarounds\nNone\n\n### References\n- https://github.com/tqdm/tqdm/releases/tag/v4.66.3","format":"markdown","source":"ghsa"},{"lang":"es","text":"tqdm es una barra de progreso de código abierto para Python y CLI. Cualquier argumento CLI opcional no booleano (por ejemplo, `--delim`, `--buf-size`, `--manpath`) se pasa a través del `eval` de Python, lo que permite la ejecución de código arbitrario. Este problema solo se puede explotar localmente y se solucionó en la versión 4.66.3. Se recomienda a todos los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2024-05-03T09:55:26.119Z","modified":"2026-09-10T03:50:13.776Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.9,"rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.9,"rating":"LOW"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":">= 4.4.0, < 4.66.3","status":"affected"}],"vendor":"tqdm","product":"tqdm","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.4.0","status":"affected","fixed":"4.66.3"}],"ecosystem":"PyPI","package":"tqdm","purl":"pkg:pypi/tqdm","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.4.0","status":"affected","fixed":"4.66.3"}],"ecosystem":"PyPI","package":"tqdm","purl":"pkg:pypi/tqdm","source":"pysec"}],"references":[{"url":"https://github.com/tqdm/tqdm/security/advisories/GHSA-g7vv-2v7x-gj9p","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/tqdm/tqdm/commit/4e613f84ed2ae029559f539464df83fa91feb316","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VA337CYUS4SLRFV2P6MX6MZ2LKFURKJC/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QRECVQCCESHBS3UJOWNXQUIX725TKNY6/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PA3GIGHPWAHCTT4UF57LTPZGWHAX3GW6/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34062","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/tqdm/tqdm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PA3GIGHPWAHCTT4UF57LTPZGWHAX3GW6","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QRECVQCCESHBS3UJOWNXQUIX725TKNY6","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VA337CYUS4SLRFV2P6MX6MZ2LKFURKJC","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/tqdm","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-g7vv-2v7x-gj9p","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-06-17T18:59:26.047Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-34062","url":"https://www.cve.org/CVERecord?id=CVE-2024-34062","licence":"CVE Terms of Use","modified":"2025-02-13T17:52:21.881Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g7vv-2v7x-gj9p","url":"https://github.com/advisories/GHSA-g7vv-2v7x-gj9p","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:13.776Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-34062","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34062","licence":"Public domain","modified":"2026-06-17T07:32:49.983Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1976","url":"https://osv.dev/vulnerability/PYSEC-2026-1976","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:11.555Z"}],"updatedAt":"2026-11-25T22:58:39.926Z","epss":{"score":0.00436,"percentile":0.3963,"date":"2026-12-01T12:00:22.000Z"}}