CVE-2023-6507

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`).

ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
6.1 MEDIUM
ADJACENT_NETWORK
LOW
HIGH
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
PSFCNA
6.1 MEDIUM
ADJACENT_NETWORK
LOW
HIGH
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
CISA-ADPADP
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 11%
VendorProductVersion
pythonpython
3.12.0
pythonpython
3.13.0:alpha1
pythonpython
3.13.0:alpha2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
python2.7
bullseye
2.7.18-8+deb11u1
fixed
python3.11
bookworm
3.11.2-6+deb12u4
fixed
bookworm (security)
3.11.2-6+deb12u3
fixed
python3.12
trixie
3.12.8-3
fixed
sid
3.12.8-3
fixed
python3.9
bullseye
3.9.2-1
fixed
bullseye (security)
3.9.2-1+deb11u2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python2.7
noble
dne
mantic
dne
lunar
dne
jammy
not-affected
focal
not-affected
bionic
not-affected
xenial
not-affected
trusty
not-affected
python3.10
noble
dne
mantic
dne
lunar
dne
jammy
not-affected
focal
dne
bionic
ignored
xenial
ignored
trusty
ignored
python3.11
noble
dne
mantic
not-affected
lunar
not-affected
jammy
not-affected
focal
dne
bionic
ignored
xenial
ignored
trusty
ignored
python3.12
noble
not-affected
mantic
Fixed 3.12.0-1ubuntu0.1
released
lunar
dne
jammy
dne
focal
dne
bionic
ignored
xenial
ignored
trusty
ignored
python3.7
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
dne
bionic
not-affected
xenial
ignored
trusty
ignored
python3.9
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
not-affected
bionic
ignored
xenial
ignored
trusty
ignored