CVSS 4.0
5.3 mediumCVSS: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:GreenMedium (5.3) in python python. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.
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:GreenCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExplain CVE-2024-9287 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-9287?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-9287?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-9287 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Python Software Foundation CPython | before 3.9.21 |
| Python Software Foundation CPython | from 3.10.0 before 3.10.16 |
| Python Software Foundation CPython | from 3.11.0 before 3.11.11 |
| Python Software Foundation CPython | from 3.12.0 before 3.12.8 |
| Python Software Foundation CPython | from 3.13.0 before 3.13.1 |
| Python Software Foundation CPython | from 3.14.0a1 before 3.14.0a2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | pypy3 | 7.3.5+dfsg-2+deb11u4 | DLA-3966-1 |
| Debian | 11 | python3.9 | 3.9.2-1+deb11u2 | DLA-3980-1 |
| Debian | 12 | pypy3 | 7.3.11+dfsg-2+deb12u3 | DEBIAN-CVE-2024-9287 |
| Debian | 12 | python3.11 | 3.11.2-6+deb12u5 | DEBIAN-CVE-2024-9287 |
| Debian | 13 | python3.13 | 3.13.1-1 | DEBIAN-CVE-2024-9287 |
| Debian | 13, 14 | pypy3 | 7.3.17+dfsg-3 | DEBIAN-CVE-2024-9287 |
| Ubuntu | 20.04:LTS | python3.8 | 3.8.10-0ubuntu1~20.04.16 | UBUNTU-CVE-2024-9287 USN-7116-1 USN-7348-1 |
| Ubuntu | 22.04:LTS | python3.10 | 3.10.12-1~22.04.7 | UBUNTU-CVE-2024-9287 USN-7116-1 |
| Ubuntu | 24.04:LTS | python3.12 | 3.12.3-1ubuntu0.3 | UBUNTU-CVE-2024-9287 USN-7116-1 |
| Ubuntu | Pro:14.04:LTS | python2.7 | 2.7.6-8ubuntu0.6+esm24 | USN-7488-1 |
| Ubuntu | Pro:14.04:LTS | python3.4 | 3.4.3-1ubuntu1~14.04.7+esm14 | UBUNTU-CVE-2024-9287 USN-7488-1 |
| Ubuntu | Pro:14.04:LTS | python3.5 | 3.5.2-2ubuntu0~16.04.4~14.04.1+esm4 | UBUNTU-CVE-2024-9287 USN-7348-1 |
| Ubuntu | Pro:16.04:LTS | python2.7 | 2.7.12-1ubuntu0~16.04.18+esm15 | USN-7488-1 |
| Ubuntu | Pro:16.04:LTS | python3.5 | 3.5.2-2ubuntu0~16.04.13+esm16 | UBUNTU-CVE-2024-9287 USN-7348-1 |
| Ubuntu | Pro:18.04:LTS | python2.7 | 2.7.17-1~18.04ubuntu1.13+esm10 | USN-7488-1 |
| Ubuntu | Pro:18.04:LTS | python3.6 | 3.6.9-1~18.04ubuntu1.13+esm3 | UBUNTU-CVE-2024-9287 USN-7488-1 |
| Ubuntu | Pro:18.04:LTS | python3.7 | 3.7.5-2ubuntu1~18.04.2+esm4 | UBUNTU-CVE-2024-9287 USN-7488-1 |
| Ubuntu | Pro:18.04:LTS | python3.8 | 3.8.0-3ubuntu1~18.04.2+esm3 | UBUNTU-CVE-2024-9287 USN-7488-1 |
| 4 more for Ubuntu in the JSON and on Ubuntu's page. | ||||
| Red Hat | enterprise_linux:8::appstream | PyYAML, python39-pyyaml, PyYAML-debugsource and 1 more | 0:5.4.1-1.module+el8.9.0+19644+d68f775d | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | mod_wsgi, python39-mod_wsgi | 0:4.7.1-7.module+el8.10.0+23075+0aa18782.1 | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | numpy, python39-numpy, numpy-debugsource and 3 more | 0:1.19.4-3.module+el8.9.0+19644+d68f775d | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | python-PyMySQL, python39-PyMySQL | 0:0.10.1-2.module+el8.9.0+19644+d68f775d | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | python-cffi, python39-cffi, python-cffi-debugsource and 1 more | 0:1.14.3-2.module+el8.9.0+19644+d68f775d | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | python-chardet, python39-chardet | 0:3.0.4-19.module+el8.9.0+19644+d68f775d | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | python-cryptography, python39-cryptography, python-cryptography-debugsource and 1 more | 0:3.3.1-3.module+el8.10.0+21271+eccd1d86 | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | python-idna, python39-idna | 0:2.10-4.module+el8.10.0+21815+bb024982 | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | python-lxml, python39-lxml, python-lxml-debugsource and 1 more | 0:4.6.5-1.module+el8.9.0+19644+d68f775d | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | python-ply, python39-ply | 0:3.11-10.module+el8.9.0+19644+d68f775d | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | python-psutil, python39-psutil, python-psutil-debugsource and 1 more | 0:5.8.0-4.module+el8.9.0+19644+d68f775d | RHSA-2025:23530 |
| Red Hat | enterprise_linux:8::appstream | python-psycopg2, python39-psycopg2, python39-psycopg2-doc and 3 more | 0:2.8.6-3.module+el8.10.0+21142+453d2b75 | RHSA-2025:23530 |
| 44 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise Micro 5.1 | python3, python3-core | 3.6.15-150000.3.164.1 | SUSE-SU-2024:3760-1 |
| SUSE | Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3, Linux Enterprise Micro 5.4 and 3 more | python3, python3-core | 3.6.15-150300.10.75.1 | SUSE-SU-2024:3879-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6 | python311-core | 3.11.10-150600.3.9.2 | SUSE-SU-2024:3958-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP5, Linux Enterprise Module for Development Tools 15 SP6 | python3-core | 3.6.15-150300.10.75.1 | SUSE-SU-2024:3879-1 |
| SUSE | Linux Enterprise Module for Legacy 15 SP5 | python39 | 3.9.20-150300.4.55.1 | SUSE-SU-2024:3945-1 |
| SUSE | Linux Enterprise Module for Legacy 15 SP5 | python39-core | 3.9.20-150300.4.55.2 | SUSE-SU-2024:3945-1 |
| SUSE | Linux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Python 3 15 SP5 | python311, python311-core | 3.11.10-150400.9.38.2 | SUSE-SU-2024:3957-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP5 | python311-documentation | 3.11.10-150400.9.38.1 | SUSE-SU-2024:3957-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP6 | python311, python311-core | 3.11.10-150600.3.9.2 | SUSE-SU-2024:3958-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP6 | python312, python312-core | 3.12.7-150600.3.9.1 | SUSE-SU-2024:3959-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP6 | python312, python312-core | 3.12.8-150600.3.15.1 | SUSE-SU-2025:0048-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP7 | python313, python313-core | 3.13.5-150700.4.11.1 | SUSE-SU-2025:02074-1 |
| 4 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.5 | python311, python311-core | 3.11.10-150400.9.38.2 | SUSE-SU-2024:3957-1 |
| openSUSE | Leap 15.5 | python311-documentation | 3.11.10-150400.9.38.1 | SUSE-SU-2024:3957-1 |
| openSUSE | Leap 15.5, Leap 15.6 | python3, python3-core, python3-documentation | 3.6.15-150300.10.75.1 | SUSE-SU-2024:3879-1 |
| openSUSE | Leap 15.5, Leap 15.6 | python310, python310-core, python310-documentation | 3.10.15-150400.4.60.1 | SUSE-SU-2024:3924-1 |
| openSUSE | Leap 15.5, Leap 15.6 | python39, python39-documentation | 3.9.20-150300.4.55.1 | SUSE-SU-2024:3945-1 |
| openSUSE | Leap 15.5, Leap 15.6 | python39-core | 3.9.20-150300.4.55.2 | SUSE-SU-2024:3945-1 |
| openSUSE | Leap 15.6 | python310, python310-core, python310-documentation | 3.10.16-150400.4.66.1 | SUSE-SU-2025:0049-1 |
| openSUSE | Leap 15.6 | python311, python311-core | 3.11.10-150600.3.9.2 | SUSE-SU-2024:3958-1 |
| openSUSE | Leap 15.6 | python311-documentation | 3.11.10-150600.3.9.3 | SUSE-SU-2024:3958-1 |
| openSUSE | Leap 15.6 | python312, python312-core, python312-documentation | 3.12.7-150600.3.9.1 | SUSE-SU-2024:3959-1 |
| openSUSE | Leap 15.6 | python312, python312-core, python312-documentation | 3.12.8-150600.3.15.1 | SUSE-SU-2025:0048-1 |
| openSUSE | Leap 15.6 | python39, python39-core, python39-documentation | 3.9.21-150300.4.61.1 | SUSE-SU-2025:0047-1 |
| 8 more for openSUSE in the JSON and on openSUSE's page. | ||||
| AlmaLinux | 8 | python3-idle, python3-libs, python3-test and 4 more | 3.6.8-69.el8_10.alma.1 | ALSA-2024:10779 |
| AlmaLinux | 8 | python3.11, python3.11-idle, python3.11-libs and 5 more | 3.11.11-1.el8_10 | ALSA-2024:10979 |
| AlmaLinux | 8 | python3.12, python3.12-idle, python3.12-libs and 5 more | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| AlmaLinux | 8 | python39, python39-idle, python39-libs and 5 more | 3.9.25-2.module_el8.10.0+4083+53cad1fb | ALSA-2025:23530 |
| AlmaLinux | 8 | python39-Cython | 0.29.21-5.module_el8.6.0+2780+a40f65e1 | ALSA-2025:23530 |
| AlmaLinux | 8 | python39-Cython | 0.29.21-5.module_el8.6.0+3248+c431e88c | ALSA-2025:23530 |
| AlmaLinux | 8 | python39-PyMySQL | 0.10.1-2.module_el8.6.0+2780+a40f65e1 | ALSA-2025:23530 |
| AlmaLinux | 8 | python39-attrs | 20.3.0-2.module_el8.6.0+2780+a40f65e1 | ALSA-2025:23530 |
| AlmaLinux | 8 | python39-cffi | 1.14.3-2.module_el8.6.0+2780+a40f65e1 | ALSA-2025:23530 |
| AlmaLinux | 8 | python39-cffi | 1.14.3-2.module_el8.6.0+3248+c431e88c | ALSA-2025:23530 |
| AlmaLinux | 8 | python39-chardet | 3.0.4-19.module_el8.6.0+2780+a40f65e1 | ALSA-2025:23530 |
| AlmaLinux | 8 | python39-cryptography | 3.3.1-3.module_el8.10.0+3765+2f9a457d | ALSA-2025:23530 |
| 35 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | Cython | 0:0.29.21-5.module+el8.10.0+1582+bc278001 | RLSA-2025:23530 |
| Rocky Linux | 8 | Cython | 0:0.29.21-5.module+el8.10.0+1860+afcc1c71 | RLSA-2025:23530 |
| Rocky Linux | 8 | PyYAML | 0:5.4.1-1.module+el8.10.0+1582+bc278001 | RLSA-2025:23530 |
| Rocky Linux | 8 | PyYAML | 0:5.4.1-1.module+el8.10.0+1860+afcc1c71 | RLSA-2025:23530 |
| Rocky Linux | 8 | PyYAML | 0:5.4.1-1.module+el8.9.0+1418+f0d66789 | RLSA-2025:23530 |
| Rocky Linux | 8 | mod_wsgi | 0:4.7.1-7.module+el8.10.0+1582+bc278001 | RLSA-2025:23530 |
| Rocky Linux | 8 | mod_wsgi | 0:4.7.1-7.module+el8.10.0+1860+afcc1c71 | RLSA-2025:23530 |
| Rocky Linux | 8 | mod_wsgi | 0:4.7.1-7.module+el8.10.0+1978+d4f111ba.1 | RLSA-2025:23530 |
| Rocky Linux | 8 | numpy | 0:1.19.4-3.module+el8.10.0+1582+bc278001 | RLSA-2025:23530 |
| Rocky Linux | 8 | numpy | 0:1.19.4-3.module+el8.10.0+1860+afcc1c71 | RLSA-2025:23530 |
| Rocky Linux | 8 | pybind11 | 0:2.7.1-1.module+el8.9.0+1357+a3b80af7 | RLSA-2025:23530 |
| Rocky Linux | 8 | pytest | 0:6.0.2-2.module+el8.10.0+1582+bc278001 | RLSA-2025:23530 |
| 60 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.18, v3.19 | python3 | 3.11.11-r0 | ALPINE-CVE-2024-9287 |
| Alpine | v3.20, v3.21, v3.22 and 2 more | python3 | 3.12.8-r0 | ALPINE-CVE-2024-9287 |
| Azure Linux | 2 | python3 | 3.9.19-11 | AZL-50757 |
| Azure Linux | 3 | python-py | no fix listed | AZL-109677 |
| Azure Linux | 3 | python3 | 3.12.9-1 | AZL-50926 |
| Alpaquita | 23 | python3 | 3.11.11-r0 | BELL-CVE-2024-9287 |
| Alpaquita | stream | python3 | 3.12.8-r0 | BELL-CVE-2024-9287 |
| BellSoft Hardened Containers | 23 | python3 | 3.11.11-r0 | BELL-CVE-2024-9287 |
| BellSoft Hardened Containers | stream | python3 | 3.12.8-r0 | BELL-CVE-2024-9287 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.
Red Hat rates this Moderate.
This vulnerability in the Python `venv` module is rated as moderate rather than important because it relies on a specific set of conditions to be exploitable, limiting its impact. An attacker would need to have control over the virtual environment creation process and access to the environment setup, which is less common in typical usage scenarios. Furthermore, the vulnerability only poses a risk if users activate the malicious virtual environment through `source venv/bin/activate` or similar scripts, as direct invocation of the virtual environment without activation (`./venv/bin/python`) is not affected.
Versions of python36:3.6/python36 and python39:3.9/python39 as shipped with Red Hat Enterprise Linux 8 are marked as 'Not affected' as they just provide "symlinks" to the main python3 component, which provides the actual interpreter of the Python programming language.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | python3.12-0:3.12.9-1.el10 | Fixed 2025-05-13 | RHBA-2025:6294 |
| Red Hat Enterprise Linux 8 | python3-0:3.6.8-69.el8_10 | Fixed 2024-12-04 | RHSA-2024:10779 |
| Red Hat Enterprise Linux 8 | python3.11-0:3.11.11-1.el8_10 | Fixed 2024-12-12 | RHSA-2024:10979 |
| Red Hat Enterprise Linux 8 | python3.12-0:3.12.8-1.el8_10 | Fixed 2024-12-12 | RHSA-2024:10980 |
| Red Hat Enterprise Linux 8 | python39:3.9-8100020251126112422.d47b87a4 | Fixed 2025-12-18 | RHSA-2025:23530 |
| Red Hat Enterprise Linux 8 | python39-devel:3.9-8100020251126112422.d47b87a4 | Fixed 2025-12-18 | RHSA-2025:23530 |
| Red Hat Enterprise Linux 9 | python3.12-0:3.12.5-2.el9_5.2 | Fixed 2024-12-12 | RHSA-2024:10978 |
| Red Hat Enterprise Linux 9 | python3.9-0:3.9.21-1.el9_5 | Fixed 2024-12-12 | RHSA-2024:10983 |
| Red Hat Enterprise Linux 9 | python3.11-0:3.11.9-7.el9_5.2 | Fixed 2024-12-16 | RHSA-2024:11111 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | python3.9-0:3.9.18-3.el9_4.7 | Fixed 2024-12-12 | RHSA-2024:11024 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | python3.12-0:3.12.1-4.el9_4.5 | Fixed 2024-12-13 | RHSA-2024:11035 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | python3.11-0:3.11.7-1.el9_4.7 | Fixed 2025-01-13 | RHSA-2025:0280 |
| Red Hat Enterprise Linux 7 | python | Out of support scope | |
| Red Hat Enterprise Linux 7 | python3 | Out of support scope | |
| Red Hat Enterprise Linux 8 | python36:3.6/python36 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-9287.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.