CVE-2023-6507: python software foundation cpython Improper Privilege Management
Vulnerability summary
CVE-2023-6507 is a medium (CVSS 6.1) Improper Privilege Management vulnerability in python software foundation cpython. EPSS estimates a 1.34% chance of exploitation in the next 30 days, higher than 70.8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 08-12-2023PublishedVulnerability first disclosed.
- 31-07-2026Last modifiedVulnerability information updated.
Description
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`).
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
- NVDNIST4.9MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
1.34%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
+0.01 pp
From 1.33% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Opensuse1 product
- python312&distro=openSUSE Tumbleweed< 3.12.1-1.1
Python1 product
- python3.12.0 | 3.13.0:alpha1 | 3.13.0:alpha2
Python software foundation1 product
- cpython< 3.12.1 | ≥ 3.13.0a1, < 3.13.0a3
Ubuntu1 product
- python3.12< 3.12.1-2
4 vendors · 4 products
References
10 links- mail.python.org/archives/list/security-announce@python.org/thread/AUL7QFHBLILGISS7U63B47AYSSGJJQZD/Vendor AdvisoryREPORTThird Party Advisory