Injection Affecting tqdm package, versions [,4.66.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th percentile)

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 IDSNYK-PYTHON-TQDM-6807582
  • published3 May 2024
  • disclosed3 May 2024
  • creditUnknown

Introduced: 3 May 2024

CVE-2024-34062  (opens in a new tab)
CWE-74  (opens in a new tab)

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

CVSS Scores

version 3.1