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`).
Conclusion & alert: CVE-2023-6507 is rated Moderate Risk (49.1/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.33%). Core evidence: EPSS rose +1.24% over the last day, indicating growing attacker interest. Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.08% | 1.33% | +1.24% |
| 2 | 2025-11-21 | 0.36% | 0.08% | -0.27% |
| 3 | 2025-11-18 | — | 0.36% | — |
Full EPSS history (9 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.1 | 3.1 | MEDIUM |
|
0.9 | 5.2 | [email protected] |
| 4.9 | 3.1 | MEDIUM |
|
1.2 | 3.6 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2023-6507 unimportant priority: Debian including 3 source packages (python2.7, python3.11, python3.9), 3 status rows across 2 suites (bookworm, bullseye): resolved 3. | https://security-tracker.debian.org/tracker/CVE-2023-6507 |
gentoo
|
high | CVE-2023-6507: 1 GLSA(s) (202405-01), 4 atom(s) (dev-lang/python, dev-python/pypy3, dev-python/pypy3_10, dev-python/pypy3_9); latest impact high. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2023-6507 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2023-6507 |
ubuntu
|
medium | CVE-2023-6507 medium priority: Ubuntu including 6 source packages (python2.7, python3.10, python3.11, python3.12, python3.7, python3.9), 54 status rows across 9 suites (bionic, focal, jammy, lunar, mantic, noble, trusty, upstream, xenial): DNE 21, not-affected 17, ignored 14, released 2. | https://ubuntu.com/security/CVE-2023-6507 |