VULNERABILITY

Red Hat: CVE-2024-9287: python: Virtual environment (venv) activation scripts don't quote paths (Multiple Advisories)

Try Surface Command Get a continuous 360° view of your attack surface
Back to Search

Red Hat: CVE-2024-9287: python: Virtual environment (venv) activation scripts don't quote paths (Multiple Advisories)

Severity
5
CVSS
(AV:L/AC:L/Au:M/C:P/I:C/A:N)
Published
10/22/2024
Created
01/16/2025
Added
01/15/2025
Modified
02/12/2025

Description

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.

Solution(s)

  • redhat-upgrade-platform-python
  • redhat-upgrade-platform-python-debug
  • redhat-upgrade-platform-python-devel
  • redhat-upgrade-python-unversioned-command
  • redhat-upgrade-python3
  • redhat-upgrade-python3-11
  • redhat-upgrade-python3-11-debug
  • redhat-upgrade-python3-11-debuginfo
  • redhat-upgrade-python3-11-debugsource
  • redhat-upgrade-python3-11-devel
  • redhat-upgrade-python3-11-idle
  • redhat-upgrade-python3-11-libs
  • redhat-upgrade-python3-11-rpm-macros
  • redhat-upgrade-python3-11-test
  • redhat-upgrade-python3-11-tkinter
  • redhat-upgrade-python3-12
  • redhat-upgrade-python3-12-debug
  • redhat-upgrade-python3-12-debuginfo
  • redhat-upgrade-python3-12-debugsource
  • redhat-upgrade-python3-12-devel
  • redhat-upgrade-python3-12-idle
  • redhat-upgrade-python3-12-libs
  • redhat-upgrade-python3-12-rpm-macros
  • redhat-upgrade-python3-12-test
  • redhat-upgrade-python3-12-tkinter
  • redhat-upgrade-python3-9-debuginfo
  • redhat-upgrade-python3-9-debugsource
  • redhat-upgrade-python3-debug
  • redhat-upgrade-python3-debuginfo
  • redhat-upgrade-python3-debugsource
  • redhat-upgrade-python3-devel
  • redhat-upgrade-python3-idle
  • redhat-upgrade-python3-libs
  • redhat-upgrade-python3-test
  • redhat-upgrade-python3-tkinter

insightVM

Advanced vulnerability management analytics and reporting.
Key Features
  • Lightweight Endpoint Agent
  • Live Dashboards
  • Real Risk Prioritization
  • IT-Integrated Remediation Projects
  • Cloud, Virtual, and Container Assessment
  • Integrated Threat Feeds
  • Easy-to-Use RESTful API
  • Automation-Assisted Patching
  • Automated Containment
Free InsightVM Trial View All Features

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;