Injection Affecting tqdm package, versions [,4.66.3)


0.0
medium
0
10

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.04% (9th percentile)
Expand this section
Red Hat
7.3 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-TQDM-6807582
  • published 3 May 2024
  • disclosed 3 May 2024
  • credit Unknown

How to fix?

Upgrade tqdm to version 4.66.3 or higher.

Overview

Affected versions of this package are vulnerable to Injection due to the handling of optional non-boolean CLI arguments such as --delim, --buf-size, --manpath through python's eval function. An attacker can execute arbitrary code by injecting malicious input into these arguments.

PoC


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

References