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.
- BDU:2025-03332
- ALSA-2024:10779
- ALSA-2024:10978
- ALSA-2024:10979
- ALSA-2024:10980
- ALSA-2024:10983
- ALSA-2024:11111
- ALSA-2025:23530
- DLA-3966-1
- openSUSE-SU-2024:14426-1
- openSUSE-SU-2024:14427-1
- openSUSE-SU-2024:14428-1
- openSUSE-SU-2024:14430-1
- openSUSE-SU-2024:14455-1
- openSUSE-SU-2024:14456-1
- RHBA-2025:6294
- RHSA-2024:10779
- RHSA-2024:10978
- RHSA-2024:10979
- RHSA-2024:10980
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
- CWE
- CWE-428
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
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
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | platform-python | before 3.6.8-69.el8_10.alma.1 | 3.6.8-69.el8_10.alma.1 |
| AlmaLinux:8 | platform-python-debug | before 3.6.8-69.el8_10.alma.1 | 3.6.8-69.el8_10.alma.1 |
| AlmaLinux:8 | platform-python-devel | before 3.6.8-69.el8_10.alma.1 | 3.6.8-69.el8_10.alma.1 |
| AlmaLinux:8 | python3-idle | before 3.6.8-69.el8_10.alma.1 | 3.6.8-69.el8_10.alma.1 |
| AlmaLinux:8 | python3-libs | before 3.6.8-69.el8_10.alma.1 | 3.6.8-69.el8_10.alma.1 |
| AlmaLinux:8 | python3-test | before 3.6.8-69.el8_10.alma.1 | 3.6.8-69.el8_10.alma.1 |
| AlmaLinux:8 | python3-tkinter | before 3.6.8-69.el8_10.alma.1 | 3.6.8-69.el8_10.alma.1 |
| AlmaLinux:8 | python3.11 | before 3.11.11-1.el8_10 | 3.11.11-1.el8_10 |
| AlmaLinux:8 | python3.11-debug | before 3.11.11-1.el8_10 | 3.11.11-1.el8_10 |
| AlmaLinux:8 | python3.11-devel | before 3.11.11-1.el8_10 | 3.11.11-1.el8_10 |
| AlmaLinux:8 | python3.11-idle | before 3.11.11-1.el8_10 | 3.11.11-1.el8_10 |
| AlmaLinux:8 | python3.11-libs | before 3.11.11-1.el8_10 | 3.11.11-1.el8_10 |
| AlmaLinux:8 | python3.11-rpm-macros | before 3.11.11-1.el8_10 | 3.11.11-1.el8_10 |
| AlmaLinux:8 | python3.11-test | before 3.11.11-1.el8_10 | 3.11.11-1.el8_10 |
| AlmaLinux:8 | python3.11-tkinter | before 3.11.11-1.el8_10 | 3.11.11-1.el8_10 |
| AlmaLinux:8 | python3.12 | before 3.12.8-1.el8_10 | 3.12.8-1.el8_10 |
| AlmaLinux:8 | python3.12-debug | before 3.12.8-1.el8_10 | 3.12.8-1.el8_10 |
| AlmaLinux:8 | python3.12-devel | before 3.12.8-1.el8_10 | 3.12.8-1.el8_10 |
| AlmaLinux:8 | python3.12-idle | before 3.12.8-1.el8_10 | 3.12.8-1.el8_10 |
| AlmaLinux:8 | python3.12-libs | before 3.12.8-1.el8_10 | 3.12.8-1.el8_10 |
| AlmaLinux:8 | python3.12-rpm-macros | before 3.12.8-1.el8_10 | 3.12.8-1.el8_10 |
| AlmaLinux:8 | python3.12-test | before 3.12.8-1.el8_10 | 3.12.8-1.el8_10 |
| AlmaLinux:8 | python3.12-tkinter | before 3.12.8-1.el8_10 | 3.12.8-1.el8_10 |
| AlmaLinux:8 | python39 | before 3.9.25-2.module_el8.10.0+4083+53cad1fb | 3.9.25-2.module_el8.10.0+4083+53cad1fb |
+96
Same product
python: all recordsOther 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 all47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot47Plan
- 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 Pyth46Plan
- 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 al46Plan
- CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C45Plan
- 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 / package | Fixed version | Source |
|---|---|---|
| Python Software Foundation CPython | 3.10.16 | Vendor (CNA) |
| Python Software Foundation CPython | 3.11.11 | Vendor (CNA) |
| Python Software Foundation CPython | 3.12.8 | Vendor (CNA) |
| Python Software Foundation CPython | 3.13.1 | Vendor (CNA) |
| Python Software Foundation CPython | 3.14.0a2 | Vendor (CNA) |
| Python Software Foundation CPython | 3.9.21 | Vendor (CNA) |
| almalinux:platform-python | 3.6.8-69.el8_10.alma.1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:platform-python-debug | 3.6.8-69.el8_10.alma.1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:platform-python-devel | 3.6.8-69.el8_10.alma.1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-idle | 3.6.8-69.el8_10.alma.1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-libs | 3.6.8-69.el8_10.alma.1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-test | 3.6.8-69.el8_10.alma.1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-tkinter | 3.6.8-69.el8_10.alma.1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3.12 | 3.12.5-2.el9_5.2 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:python3.12-debug | 3.12.5-2.el9_5.2 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:python3.12-devel | 3.12.5-2.el9_5.2 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:python3.12-idle | 3.12.5-2.el9_5.2 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:python3.12-libs | 3.12.5-2.el9_5.2 · AlmaLinux:9 | Package registry (OSV) |
| alpine:python3 | 3.11.11-r0 · Alpine:v3.18 | Package registry (OSV) |
| debian:pypy3 | 7.3.11+dfsg-2+deb12u3 · Debian:12 | Package registry (OSV) |
| debian:python3.11 | 3.11.2-6+deb12u5 · Debian:12 | Package registry (OSV) |
| debian:python3.13 | 3.13.1-1 · Debian:13 | Package registry (OSV) |
| opensuse:python3 | 3.6.15-150300.10.75.1 · openSUSE:Leap Micro 5.5 | Package registry (OSV) |
| opensuse:python3-core | 3.6.15-150300.10.75.1 · openSUSE:Leap Micro 5.5 | Package registry (OSV) |
| opensuse:python3-documentation | 3.6.15-150300.10.75.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:python310 | 3.10.15-150400.4.60.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:python310-core | 3.10.15-150400.4.60.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:python310-documentation | 3.10.15-150400.4.60.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:python39 | 3.9.20-150300.4.55.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:python39-core | 3.9.20-150300.4.55.2 · openSUSE:Leap 15.5 | Package 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.
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.
Credits
All researchersFinders, 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
Weakness class (CWE)
CWE-428 · Unquoted Search Path or ElementCVSS 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
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7
- github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db
- github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8
- github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97
- github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b
- github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483
- github.com/python/cpython/issues/124651
- github.com/python/cpython/pull/124712
- mail.python.org/archives/list/security-announce@python.org/thread/RSPJ2B5JL22FG3TKUJ7D7DQ4N5JRRBZL/
- lists.debian.org/debian-lts-announce/2024/11/msg00024.html
- lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- security.netapp.com/advisory/ntap-20250425-0006/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.