CVE-2024-9287
Last modified
CVE-2024-9287 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.65% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Python | Python | < 3.9.21 | — |
| Python | Python | >= 3.10.0, < 3.10.16 | — |
| Python | Python | >= 3.11.0, < 3.11.11 | — |
| Python | Python | >= 3.12.0, < 3.12.8 | — |
| Python | Python | >= 3.13.0, < 3.13.1 | — |
| Python | Python | 3.14.0 | Alpha1 |
References
- https://github.com/python/cpython/issues/124651Issue Tracking
- https://github.com/python/cpython/pull/124712Issue Tracking, Patch
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-9287?
How severe is CVE-2024-9287?
How do I fix CVE-2024-9287?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-9281A vulnerability was found in bg5sbk MiniCMS up to 1.11 and c…4.3
- CVE-2024-9282A vulnerability was found in bg5sbk MiniCMS 1.11. It has bee…4.3
- CVE-2024-9283A vulnerability classified as problematic has been found in …4.8
- CVE-2024-9284A vulnerability was found in TP-LINK TL-WR841ND up to 202409…7.1
- CVE-2024-9285A vulnerability was found in Tu Yafeng Via Browser up to 5.9…5.3
- CVE-2024-9286Improper Neutralization of Special Elements used in an SQL C…8.8
- CVE-2024-9289The WordPress & WooCommerce Affiliate Program plugin for Wor…9.8
- CVE-2024-9290The Super Backup & Clone - Migrate for WordPress plugin for …9.8
- CVE-2024-9291A vulnerability classified as problematic has been found in …5.4
- CVE-2024-9292The Bridge Core plugin for WordPress is vulnerable to Stored…6.4
- CVE-2024-9293A vulnerability classified as critical was found in skyselan…8.8
- CVE-2024-9294A vulnerability, which was classified as critical, has been …6.3
Are you affected by CVE-2024-9287?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
