7.8
CWE
428 77
EPSS
0.044%
Advisory Published
Updated

CVE-2024-9287: Virtual environment (venv) activation scripts don't quote paths

First published: Tue Oct 22 2024(Updated: )

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.

Credit: cna@python.org

Affected SoftwareAffected VersionHow to fix
debian/python2.7
2.7.18-8+deb11u1
debian/python3.11<=3.11.2-6+deb12u4<=3.11.2-6+deb12u3
debian/python3.12<=3.12.7-3
debian/python3.13<=3.13.0-2
debian/python3.9<=3.9.2-1
F5 BIG-IP Service Proxy for Kubernetes>=1.7.0<=1.9.2
F5 BIG-IP Next Cloud-Native Network Functions>=1.1.0<=1.4.0
Python Babel Localedata<3.9.21
Python Babel Localedata>=3.10.0<3.10.16
Python Babel Localedata>=3.11.0<3.11.11
Python Babel Localedata>=3.12.0<3.12.8
Python Babel Localedata>=3.13.0<3.13.1
Python Babel Localedata=3.14.0-alpha1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-9287?

    CVE-2024-9287 has been classified as a high-severity vulnerability due to the potential for command injection.

  • How do I fix CVE-2024-9287?

    To remediate CVE-2024-9287, update to the latest version of Python that addresses this vulnerability.

  • Which versions of Python are affected by CVE-2024-9287?

    CVE-2024-9287 affects multiple versions of Python including versions prior to 3.10.17, 3.11.11, 3.12.8, and 3.13.1.

  • What type of vulnerability is CVE-2024-9287?

    CVE-2024-9287 is a command injection vulnerability due to improper quoting of path names in the CPython venv module.

  • How can I verify if my system is vulnerable to CVE-2024-9287?

    You can verify your vulnerability by checking the version of Python installed on your system and comparing it to the affected versions of CVE-2024-9287.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203