CVE-2024-9287
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.648% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 5.3 · published by [email protected]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
Assessment source · checked 2026-11-19T12:40:37.493Z
CVSS 4.0 · 5.3 · published by PSFCVSS: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
Assessment source · checked 2026-11-19T12:57:23.098Z
CVSS 4.0 · 5.3 · published by Ubuntu SecurityCVSS: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
Assessment source · checked 2026-11-19T16:50:08.089Z
CVSS 3.1 · 7.8 · published by [email protected]CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T12:40:37.493Z
CVSS 3.1 · 7.8 · published by Ubuntu SecurityCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T16:50:08.089Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T12:40:37.493Z | NVD |
| epss | verified | 2026-11-19T16:04:39.514Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:57:31.123Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:57:23.098Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:23.098Z | CVE Program |
Affected versions and configuration
Python Software Foundation CPython; modules: venv; default status: unaffected: 0 to < 3.9.21 [affected; scheme: python]; 3.10.0 to < 3.10.16 [affected; scheme: python]; 3.11.0 to < 3.11.11 [affected; scheme: python]; 3.12.0 to < 3.12.8 [affected; scheme: python]; 3.13.0 to < 3.13.1 [affected; scheme: python]; 3.14.0a1 to < 3.14.0a2 [affected; scheme: python]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.11",
"debian": "https://tracker.debian.org/pkg/python3.11",
"source": "https://ubuntu.com/security/cve?package=python3.11",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.11",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "oracular"
},
{
"pocket": "esm-apps",
"status": "released",
"component": null,
"description": "3.11.0~rc1-1~22.04.1~esm2",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.11.11",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.12",
"debian": "https://tracker.debian.org/pkg/python3.12",
"source": "https://ubuntu.com/security/cve?package=python3.12",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.12",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.12.3-1ubuntu0.3",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.12.7-1ubuntu1",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.12.8",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.10",
"debian": "https://tracker.debian.org/pkg/python3.10",
"source": "https://ubuntu.com/security/cve?package=python3.10",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.10",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.10.12-1~22.04.7",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.10.16",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.13",
"debian": "https://tracker.debian.org/pkg/python3.13",
"source": "https://ubuntu.com/security/cve?package=python3.13",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.13",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.13.1",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.13.0-1ubuntu0.1",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.13.3-1",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.13.3-2",
"release_codename": "questing"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"repo": "https://github.com/python/cpython",
"vendor": "Python Software Foundation",
"modules": [
"venv"
],
"product": "CPython",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "3.9.21",
"versionType": "python"
},
{
"status": "affected",
"version": "3.10.0",
"lessThan": "3.10.16",
"versionType": "python"
},
{
"status": "affected",
"version": "3.11.0",
"lessThan": "3.11.11",
"versionType": "python"
},
{
"status": "affected",
"version": "3.12.0",
"lessThan": "3.12.8",
"versionType": "python"
},
{
"status": "affected",
"version": "3.13.0",
"lessThan": "3.13.1",
"versionType": "python"
},
{
"status": "affected",
"version": "3.14.0a1",
"lessThan": "3.14.0a2",
"versionType": "python"
}
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-9287",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2025-07-23T03:55:30.785809Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-10-30T10:50:52.314Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://security.netapp.com/advisory/ntap-20250425-0006/"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-03T22:33:21.116Z"
}
}
]
}Archived source JSONNVD · nvd-cpe · full conditions
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "33E41245-604A-4967-85A8-F3DC04E6D0CC",
"versionEndExcluding": "3.9.21"
},
{
"criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "B013F87A-0CEE-4DC1-AAFC-7EBDAC6576C5",
"versionEndExcluding": "3.10.16",
"versionStartIncluding": "3.10.0"
},
{
"criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "DC875838-E29D-4D06-84DA-8F552FCFD726",
"versionEndExcluding": "3.11.11",
"versionStartIncluding": "3.11.0"
},
{
"criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "D4899490-179B-4EB7-9713-912862F62B94",
"versionEndExcluding": "3.12.8",
"versionStartIncluding": "3.12.0"
},
{
"criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "B186E2B1-39FF-4264-AAC3-CF6D5E767F30",
"versionEndExcluding": "3.13.1",
"versionStartIncluding": "3.13.0"
},
{
"criteria": "cpe:2.3:a:python:python:3.14.0:alpha1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "BAEA33EC-9685-4778-B77C-3E127BD31DB9"
}
],
"operator": "OR"
}
]
}
]Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / jammy | python3.11 | esm-apps | 3.11.0~rc1-1~22.04.1~esm2 | Official record |
| upstream-release | upstream / upstream | python3.11 | Not a distribution channel | 3.11.11 | Official record |
| distribution-package | Ubuntu / noble | python3.12 | security | 3.12.3-1ubuntu0.3 | Official record |
| distribution-package | Ubuntu / oracular | python3.12 | security | 3.12.7-1ubuntu1 | Official record |
| upstream-release | upstream / upstream | python3.12 | Not a distribution channel | 3.12.8 | Official record |
| distribution-package | Ubuntu / jammy | python3.10 | security | 3.10.12-1~22.04.7 | Official record |
| upstream-release | upstream / upstream | python3.10 | Not a distribution channel | 3.10.16 | Official record |
| upstream-release | upstream / upstream | python3.13 | Not a distribution channel | 3.13.1 | Official record |
| distribution-package | Ubuntu / oracular | python3.13 | security | 3.13.0-1ubuntu0.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- Ubuntu SecurityConsulted: 2026-11-19T16:50:08.089ZArchived source JSON
Source publication: 2024-10-22T17:15:00.000Z
Source modification: 2026-06-19T15:59:27.638ZDocument fingerprint
d8b69d7b83d6e38edaed7a7aac604c522656c2ac08e74a7d97bfadb74e0927de - NVDConsulted: 2026-11-19T12:40:37.493ZArchived source JSON
Source publication: 2024-10-22T17:15:06.697Z
Source modification: 2026-10-30T11:17:30.110ZDocument fingerprint
5bdcb72819ddb1e8f34931bff43735b4dc074aee90667bff0ef3dbbf8d6b62c6 - CVE ProgramConsulted: 2026-11-19T12:57:23.098ZArchived source JSON
Source publication: 2024-10-22T16:34:39.210Z
Source modification: 2026-10-30T10:50:52.314ZDocument fingerprint
024da3530aef59472c9915c85db253fcccaf25e4e739ccaef6be53c27de882ab - Ubuntu SecurityConsulted: 2026-11-19T16:56:49.111ZArchived source JSON
Source publication: 2024-10-22T17:15:00.000Z
Source modification: 2026-06-19T15:59:27.638ZDocument fingerprint
d0b4f0f3c58eb1d54bc58a7653225a4d83c2991a9222afcf2468287c324f7ee3 - Ubuntu SecurityConsulted: 2026-11-19T16:57:17.250ZArchived source JSON
Source publication: 2024-10-22T17:15:00.000Z
Source modification: 2026-06-19T15:59:27.638ZDocument fingerprint
9cd5740f6ee87b91c9dd35271e23a7383862dfa05eb16a6af456f24a4bdb5995 - Ubuntu SecurityConsulted: 2026-11-19T16:57:31.123ZArchived source JSON
Source publication: 2024-10-22T17:15:00.000Z
Source modification: 2026-06-19T15:59:27.638ZDocument fingerprint
c5ca5517f6283547c494a17b9b26fdba5781dae5a0e1c307f9becdc61bd39396 - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:39.514ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
c07aa8e6fdfc310c84fe1ac9be92e31e56fc57bead56722404a3841425dfa449
Official status history
- UNKNOWN → PUBLISHED · · evidence