Lucene search

K
githubGitHub Advisory DatabaseGHSA-G7VV-2V7X-GJ9P
HistoryMay 03, 2024 - 7:33 p.m.

tqdm CLI arguments injection attack

2024-05-0319:33:28
CWE-74
GitHub Advisory Database
github.com
3
tqdm
cli
arguments
injection
attack
code execution
python
eval
patch
release

4.8 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

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

7.9 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%

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

Affected configurations

Vulners
Node
tqdmtqdmRange<4.66.3
CPENameOperatorVersion
tqdmlt4.66.3

4.8 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

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

7.9 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%