Skip to content
Noroxi
CVE-2024-9287· NVD / CVE Program· CNA PSF

Virtual environment (venv) activation scripts don't quote paths

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.

MediumCVSS 5.3 · v4.0—No exploit Fix available

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help
Published
Oct 22, 2024
Updated
Jun 17, 2026
EPSS
0.6% · 49th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

21

Monitor

Low priority for now.

CVSS
21 / 40 · 5.3 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.6%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · PSF
5.3
NVD has not scored this yet; the score shown is the CNA’s.

CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/U:Green

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
pythonpython

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • python pythonbefore 3.9.21
  • python python3.10.0 and later · before 3.10.16
  • python python3.11.0 and later · before 3.11.11
  • python python3.12.0 and later · before 3.12.8
  • python python3.13.0 and later · before 3.13.1
  • python python3.14.0

Versions reported by the vendor

Affected version ranges reported by the assigning authority (PSF). Independent of NVD's CPE analysis and usually ahead of it.

  • Python Software Foundation CPython

    • before 3.9.21affected · python
    • 3.10.0 and later · before 3.10.16affected · python
    • 3.11.0 and later · before 3.11.11affected · python
    • 3.12.0 and later · before 3.12.8affected · python
    • 3.13.0 and later · before 3.13.1affected · python
    • 3.14.0a1 and later · before 3.14.0a2affected · python

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8platform-pythonbefore 3.6.8-69.el8_10.alma.13.6.8-69.el8_10.alma.1
AlmaLinux:8platform-python-debugbefore 3.6.8-69.el8_10.alma.13.6.8-69.el8_10.alma.1
AlmaLinux:8platform-python-develbefore 3.6.8-69.el8_10.alma.13.6.8-69.el8_10.alma.1
AlmaLinux:8python3-idlebefore 3.6.8-69.el8_10.alma.13.6.8-69.el8_10.alma.1
AlmaLinux:8python3-libsbefore 3.6.8-69.el8_10.alma.13.6.8-69.el8_10.alma.1
AlmaLinux:8python3-testbefore 3.6.8-69.el8_10.alma.13.6.8-69.el8_10.alma.1
AlmaLinux:8python3-tkinterbefore 3.6.8-69.el8_10.alma.13.6.8-69.el8_10.alma.1
AlmaLinux:8python3.11before 3.11.11-1.el8_103.11.11-1.el8_10
AlmaLinux:8python3.11-debugbefore 3.11.11-1.el8_103.11.11-1.el8_10
AlmaLinux:8python3.11-develbefore 3.11.11-1.el8_103.11.11-1.el8_10
AlmaLinux:8python3.11-idlebefore 3.11.11-1.el8_103.11.11-1.el8_10
AlmaLinux:8python3.11-libsbefore 3.11.11-1.el8_103.11.11-1.el8_10
AlmaLinux:8python3.11-rpm-macrosbefore 3.11.11-1.el8_103.11.11-1.el8_10
AlmaLinux:8python3.11-testbefore 3.11.11-1.el8_103.11.11-1.el8_10
AlmaLinux:8python3.11-tkinterbefore 3.11.11-1.el8_103.11.11-1.el8_10
AlmaLinux:8python3.12before 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-debugbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-develbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-idlebefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-libsbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-rpm-macrosbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-testbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-tkinterbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python39before 3.9.25-2.module_el8.10.0+4083+53cad1fb3.9.25-2.module_el8.10.0+4083+53cad1fb

+96

Other highest-scoring records for the same primary product.

  • CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 all
    47Plan
  • CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot
    47Plan
  • CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Pyth
    46Plan
  • CVE-2014-4650The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which al
    46Plan
  • CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C
    45Plan
  • CVE-2020-27619In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.
    42Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Python Software Foundation CPython3.10.16Vendor (CNA)
Python Software Foundation CPython3.11.11Vendor (CNA)
Python Software Foundation CPython3.12.8Vendor (CNA)
Python Software Foundation CPython3.13.1Vendor (CNA)
Python Software Foundation CPython3.14.0a2Vendor (CNA)
Python Software Foundation CPython3.9.21Vendor (CNA)
almalinux:platform-python3.6.8-69.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:platform-python-debug3.6.8-69.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:platform-python-devel3.6.8-69.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-idle3.6.8-69.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-libs3.6.8-69.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-test3.6.8-69.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-tkinter3.6.8-69.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3.123.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-debug3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-devel3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-idle3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-libs3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
alpine:python33.11.11-r0 · Alpine:v3.18Package registry (OSV)
debian:pypy37.3.11+dfsg-2+deb12u3 · Debian:12Package registry (OSV)
debian:python3.113.11.2-6+deb12u5 · Debian:12Package registry (OSV)
debian:python3.133.13.1-1 · Debian:13Package registry (OSV)
opensuse:python33.6.15-150300.10.75.1 · openSUSE:Leap Micro 5.5Package registry (OSV)
opensuse:python3-core3.6.15-150300.10.75.1 · openSUSE:Leap Micro 5.5Package registry (OSV)
opensuse:python3-documentation3.6.15-150300.10.75.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python3103.10.15-150400.4.60.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python310-core3.10.15-150400.4.60.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python310-documentation3.10.15-150400.4.60.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python393.9.20-150300.4.55.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python39-core3.9.20-150300.4.55.2 · openSUSE:Leap 15.5Package registry (OSV)

+33

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • Administrator privileges are required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
Integrity
Availability
Attack vector
Local
Attack complexity
Low
Privileges required
High
User interaction
A
Scope
X

CVSS vector

CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Green

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records