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 Details
- CVSS 3.1 Base Score: 6.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Gentoo Linux | — | Upgrade dev-lang/python.Upgrade dev-python/pypy3_9.Upgrade dev-python/pypy3.Upgrade dev-python/pypy3_10. | May 6, 2024 | Dec 8, 2023 |
| Ubuntu | — | Upgrade python3.11-minimal (Ubuntu Pro)Upgrade python3.10Upgrade python3.11Upgrade python3.6 (Ubuntu Pro)Upgrade python3.8-minimalUpgrade python3.11-minimalUpgrade python3.5-minimal (Ubuntu Pro)Upgrade python3.8Upgrade python3.6-minimal (Ubuntu Pro)Upgrade python3.12Upgrade python3.5 (Ubuntu Pro)Upgrade python3.11 (Ubuntu Pro)Upgrade python3.7 (Ubuntu Pro)Upgrade python3.10-minimalUpgrade python3.8 (Ubuntu Pro)Upgrade python3.9-minimal (Ubuntu Pro)Upgrade python3.12-minimalUpgrade python3.8-minimal (Ubuntu Pro)Upgrade python3.7-minimal (Ubuntu Pro)Upgrade python3.9 (Ubuntu Pro) | Jul 12, 2024 | Dec 8, 2023 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub