CVE-2023-6507
Groups not dropped before running subprocess when using empty 'extra_groups' parameter
An issue was found in CPython 3.12.0 `subprocess` module on POSIX platforms. The issue was fixed in CPython 3.12.1 and does not affect other stable releases. When using the `extra_groups=` parameter with an empty list as a value (ie `extra_groups=[]`) the logic regressed to not call `setgroups(0, NULL)` before calling `exec()`, thus not dropping the original processes' groups before starting the new process. There is no issue when the parameter isn't used or when any value is used besides an empty list. This issue only impacts CPython processes run with sufficient privilege to make the `setgroups` system call (typically `root`).
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.337% · 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:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 4.9 · published by [email protected]CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
Assessment source · checked 2026-11-19T12:40:37.493Z
CVSS 3.1 · 6.1 · published by [email protected]CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Assessment source · checked 2026-11-19T12:40:37.493Z
CVSS 3.1 · 6.1 · published by PSFCVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Assessment source · checked 2026-11-19T12:57:03.049Z
CVSS 3.1 · 4.9 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
Assessment source · checked 2026-11-19T12:48:08.476Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:40:37.493Z | NVD |
| epss | verified | 2026-11-19T16:04:37.769Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:48:41.523Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:57:03.049Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:03.049Z | CVE Program |
Affected versions and configuration
Python Software Foundation CPython (POSIX); default status: unaffected: 0 to < 3.12.1 [affected; scheme: python]; 3.13.0a1 to < 3.13.0a3 [affected; scheme: python]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"repo": "https://github.com/python/cpython",
"vendor": "Python Software Foundation",
"product": "CPython",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "3.12.1",
"versionType": "python"
},
{
"status": "affected",
"version": "3.13.0a1",
"lessThan": "3.13.0a3",
"versionType": "python"
}
],
"platforms": [
"POSIX"
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2023-6507",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2024-01-31T20:16:20.207522Z"
}
}
}
],
"affected": [
{
"cpes": [
"cpe:2.3:a:python:cpython:3.13.0:*:*:*:*:*:*:*"
],
"vendor": "python",
"product": "cpython",
"versions": [
{
"status": "affected",
"version": "3.13.0"
}
],
"defaultStatus": "unknown"
},
{
"cpes": [
"cpe:2.3:a:python:cpython:*:*:*:*:*:*:*:*"
],
"vendor": "python",
"product": "cpython",
"versions": [
{
"status": "affected",
"version": "3.12.0"
}
],
"defaultStatus": "unknown"
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-06-04T17:17:02.629Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/python/cpython/issues/112334",
"tags": [
"issue-tracking",
"x_transferred"
]
},
{
"url": "https://mail.python.org/archives/list/[email protected]/thread/AUL7QFHBLILGISS7U63B47AYSSGJJQZD/",
"tags": [
"vendor-advisory",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/9fe7655c6ce0b8e9adc229daf681b6d30e6b1610",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/10e9bb13b8dcaa414645b9bd10718d8f7179e82b",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/85bbfa8a4bbdbb61a3a84fbd7cb29a4096ab8a06",
"tags": [
"patch",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T08:35:13.267Z"
}
}
]
}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": "bionic"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"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": "lunar"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.12.1-1",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.12.0-1ubuntu0.1",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.12.1-2",
"release_codename": "noble"
}
]
}
]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": "bionic"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "debian: Vulnerable code not present",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
}
]
}
]Archived source JSONUbuntu 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": "bionic"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "debian: Vulnerable code not present",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
}
]
}
]Archived source JSONNVD · nvd-cpe · full conditions
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:python:python:3.12.0:-:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "5C76EDC2-43FF-448B-B65C-20AC83D680FE"
},
{
"criteria": "cpe:2.3:a:python:python:3.13.0:alpha1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "978582FF-B8F3-479F-AE77-359E9AEE6F23"
},
{
"criteria": "cpe:2.3:a:python:python:3.13.0:alpha2:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "84E3F62C-7218-4DC3-8473-8A576739643A"
}
],
"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 |
|---|---|---|---|---|---|
| upstream-release | upstream / upstream | python3.12 | Not a distribution channel | 3.12.1-1 | Official record |
| distribution-package | Ubuntu / mantic | python3.12 | security | 3.12.0-1ubuntu0.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- NVDConsulted: 2026-11-19T12:40:37.493ZArchived source JSON
Source publication: 2023-12-08T19:15:08.440Z
Source modification: 2026-07-31T15:16:26.330ZDocument fingerprint
5bdcb72819ddb1e8f34931bff43735b4dc074aee90667bff0ef3dbbf8d6b62c6 - Ubuntu SecurityConsulted: 2026-11-19T12:48:08.476ZArchived source JSON
Source publication: 2023-12-08T19:15:00.000Z
Source modification: 2025-08-04T19:49:03.601ZDocument fingerprint
c5ca5517f6283547c494a17b9b26fdba5781dae5a0e1c307f9becdc61bd39396 - Ubuntu SecurityConsulted: 2026-11-19T12:48:41.523ZArchived source JSON
Source publication: 2023-12-08T19:15:00.000Z
Source modification: 2025-08-04T19:49:03.601ZDocument fingerprint
9cd5740f6ee87b91c9dd35271e23a7383862dfa05eb16a6af456f24a4bdb5995 - CVE ProgramConsulted: 2026-11-19T12:57:03.049ZArchived source JSON
Source publication: 2023-12-08T18:20:49.583Z
Source modification: 2026-07-31T14:09:16.715ZDocument fingerprint
8224498b56f65a72a5924e74ae84c5d48202adb2825870a9d2a94f35a577a56c - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - Ubuntu SecurityConsulted: 2026-11-19T12:48:13.341ZArchived source JSON
Source publication: 2023-12-08T19:15:00.000Z
Source modification: 2025-08-04T19:49:03.601ZDocument fingerprint
d0b4f0f3c58eb1d54bc58a7653225a4d83c2991a9222afcf2468287c324f7ee3 - FIRST EPSSConsulted: 2026-11-19T16:04:37.769ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
eeab810781addaf3718bffbbfbd9069ab904b94a362008ceb3a8de1b19f5ac77
Official status history
- UNKNOWN → PUBLISHED · · evidence