Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. tqdm
  4. ›
  5. CVE-2024-34062

CVE-2024-34062: tqdm CLI arguments injection attack

May 3, 2024

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')\")) + \""

References

  • github.com/advisories/GHSA-g7vv-2v7x-gj9p
  • github.com/tqdm/tqdm
  • github.com/tqdm/tqdm/commit/4e613f84ed2ae029559f539464df83fa91feb316
  • github.com/tqdm/tqdm/security/advisories/GHSA-g7vv-2v7x-gj9p
  • nvd.nist.gov/vuln/detail/CVE-2024-34062

Code Behaviors & Features

Detect and mitigate CVE-2024-34062 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.4.0 before 4.66.3

Fixed versions

  • 4.66.3

Solution

Upgrade to version 4.66.3 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

pypi/tqdm/CVE-2024-34062.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:22 +0000.