Unquoted Search Path or Element Affecting python package, versions [0,]


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.04% (16th 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-UNMANAGED-PYTHON-8281187
  • published23 Oct 2024
  • disclosed22 Oct 2024
  • credity5c4l3

Introduced: 22 Oct 2024

CVE-2024-9287  (opens in a new tab)
CWE-428  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Unquoted Search Path or Element due to improper quoting of path names during the creation of virtual environments. An attacker can execute arbitrary commands when the virtual environment is activated by injecting commands into the activation scripts.

Note:

Virtual environments which are not created by an attacker or which aren't activated before being used (ie ./venv/bin/python) are not affected.

PoC

envname='";uname -a;"'
mkdir "$envname"
cd "$envname"
python3 -m venv .
. ./bin/activate

CVSS Scores

version 4.0
version 3.1