CVE & CISA-KEV Catalog

CVE-2024-9287

HIGH
7.8
CVSS v3
NVD

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.

How to fix

Remediation Available
pypy3Debian
Fixed in:7.3.5+dfsg-2+deb11u4CVE-2024-9287
Fixed in:7.3.11+dfsg-2+deb12u3CVE-2024-9287
Fixed in:7.3.17+dfsg-3CVE-2024-9287
Fixed in:7.3.17+dfsg-3CVE-2024-9287
Cython-0:0.29.21Rocky
Fixed in:5.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9RHSA-2025:23530
Cython-0:0.29.21Red Hat / RHEL
Fixed in:5.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9RHSA-2025:23530
Cython-debugsource-0:0.29.21Red Hat / RHEL
Fixed in:5.module+el8.9.0+19644+d68f775d.s390x::python39-devel:3.9RHSA-2025:23530
Fixed in:5.module+el8.9.0+19644+d68f775d.x86_64::python39-devel:3.9RHSA-2025:23530
Fixed in:5.module+el8.9.0+19644+d68f775d.aarch64::python39-devel:3.9RHSA-2025:23530
Fixed in:5.module+el8.9.0+19644+d68f775d.ppc64le::python39-devel:3.9RHSA-2025:23530
Cython-debugsource-0:0.29.21Rocky
Fixed in:5.module+el8.9.0+19644+d68f775d.x86_64::python39-devel:3.9RHSA-2025:23530
Fixed in:5.module+el8.9.0+19644+d68f775d.aarch64::python39-devel:3.9RHSA-2025:23530
Fixed in:5.module+el8.9.0+19644+d68f775d.s390x::python39-devel:3.9RHSA-2025:23530
Fixed in:5.module+el8.9.0+19644+d68f775d.ppc64le::python39-devel:3.9RHSA-2025:23530
PyYAMLRed Hat / RHEL
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.src::python39:3.9RHSA-2025:23530
PyYAMLRocky
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.src::python39:3.9RHSA-2025:23530
PyYAML-debugsourceRocky
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.ppc64le::python39:3.9RHSA-2025:23530
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.aarch64::python39:3.9RHSA-2025:23530
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.x86_64::python39:3.9RHSA-2025:23530
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.s390x::python39:3.9RHSA-2025:23530
PyYAML-debugsourceRed Hat / RHEL
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.x86_64::python39:3.9RHSA-2025:23530
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.s390x::python39:3.9RHSA-2025:23530
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.ppc64le::python39:3.9RHSA-2025:23530
Fixed in:0:5.4.1-1.module+el8.9.0+19644+d68f775d.aarch64::python39:3.9RHSA-2025:23530
mod_wsgiRocky
Fixed in:0:4.7.1-7.module+el8.10.0+23075+0aa18782.1.src::python39:3.9RHSA-2025:23530
mod_wsgiRed Hat / RHEL
Fixed in:0:4.7.1-7.module+el8.10.0+23075+0aa18782.1.src::python39:3.9RHSA-2025:23530
numpyRed Hat / RHEL
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.src::python39:3.9RHSA-2025:23530
numpyRocky
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.src::python39:3.9RHSA-2025:23530
numpy-debugsourceRocky
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.x86_64::python39:3.9RHSA-2025:23530
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.ppc64le::python39:3.9RHSA-2025:23530
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.aarch64::python39:3.9RHSA-2025:23530
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.s390x::python39:3.9RHSA-2025:23530
numpy-debugsourceRed Hat / RHEL
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.aarch64::python39:3.9RHSA-2025:23530
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.s390x::python39:3.9RHSA-2025:23530
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.ppc64le::python39:3.9RHSA-2025:23530
Fixed in:0:1.19.4-3.module+el8.9.0+19644+d68f775d.x86_64::python39:3.9RHSA-2025:23530
platform-pythonRed Hat / RHEL
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
platform-pythonRocky
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
platform-python-debugRed Hat / RHEL
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
platform-python-debugRocky
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
platform-python-develRocky
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
platform-python-develRed Hat / RHEL
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
Fixed in:0:3.6.8-69.el8_10RHSA-2024:10779
pybind11-0:2.7.1Rocky
Fixed in:1.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9RHSA-2025:23530
pybind11-0:2.7.1Red Hat / RHEL
Fixed in:1.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9RHSA-2025:23530
pytest-0:6.0.2Red Hat / RHEL
Fixed in:2.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9RHSA-2025:23530
pytest-0:6.0.2Rocky
Fixed in:2.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9RHSA-2025:23530
python-PyMySQLRocky
Fixed in:0:0.10.1-2.module+el8.9.0+19644+d68f775d.src::python39:3.9RHSA-2025:23530
python-PyMySQLRed Hat / RHEL
Fixed in:0:0.10.1-2.module+el8.9.0+19644+d68f775d.src::python39:3.9RHSA-2025:23530
python-attrs-0:20.3.0Red Hat / RHEL
Fixed in:2.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9RHSA-2025:23530
python-attrs-0:20.3.0Rocky
Fixed in:2.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9RHSA-2025:23530
python-cffiRocky
Fixed in:0:1.14.3-2.module+el8.9.0+19644+d68f775d.src::python39:3.9RHSA-2025:23530

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.65%probability of exploitation in 30 days
48thpercentile

Moderate risk: more likely to be exploited than 48% of all known CVEs.

References

Related Vulnerabilities

Other CWE-428 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-38408Critical9.880%-Fix
CVE-2020-15261High8.011%-Fix
CVE-2017-13993High7.82.6%--
CVE-2018-10619High7.82.6%-Fix
CVE-2019-17658Critical9.82.2%--
CVE-2015-4173Medium6.92.1%-Fix

Common questions

How do I fix CVE-2024-9287?

Published advisories record a fix for 310 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2024-9287 being actively exploited?

Not that we know of. CVE-2024-9287 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.65% is the estimated probability that it will be exploited in the next 30 days. That is higher than 48% of all scored CVEs.

How severe is CVE-2024-9287?

CVE-2024-9287 has a CVSS v3 base score of 7.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2024-9287 affect?

Published advisories record a fix for pypy3 (Debian), Cython-0:0.29.21 (Rocky), Cython-0:0.29.21 (Red Hat / RHEL), Cython-debugsource-0:0.29.21 (Red Hat / RHEL), and 306 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2024-9287
CVE-2024-9287 severity badge

Markdown

[![CVE-2024-9287](https://tridentstack.com/cve/badge/CVE-2024-9287.svg)](https://tridentstack.com/cve/CVE-2024-9287)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-9287"><img src="https://tridentstack.com/cve/badge/CVE-2024-9287.svg" alt="CVE-2024-9287"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.