Unquoted Search Path or Element Affecting python3-test package, versions <0:3.9.21-1.el9_5


Severity

Recommended
0.0
medium
0
10

Based on CentOS security rating.

Threat Intelligence

EPSS
0.04% (6th 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-CENTOS9-PYTHON3TEST-8860964
  • published28 Feb 2025
  • disclosed22 Oct 2024

Introduced: 22 Oct 2024

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

How to fix?

Upgrade Centos:9 python3-test to version 0:3.9.21-1.el9_5 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-test package and not the python3-test package as distributed by Centos. See How to fix? for Centos:9 relevant fixed versions and status.

A vulnerability has been found in the CPython venv module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts (ie "source venv/bin/activate"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected.

CVSS Base Scores

version 3.1