Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Groups not dropped before running subprocess when using empty 'extra_groups' parameter

CVSS 3.1 6.1 MEDIUMCheck source for fixed versionsKEV status unknown

cve-program · CVE-2023-6507

Published

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

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2023-6507

Published

CPython

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "defaultStatus": "unaffected",
                    "platforms": [
                        "POSIX"
                    ],
                    "product": "CPython",
                    "repo": "https://github.com/python/cpython",
                    "vendor": "Python Software Foundation",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "3.12.1",
                            "status": "affected",
                            "versionType": "python"
                        },
                        {
                            "version": "3.13.0a1",
                            "lessThan": "3.13.0a3",
                            "status": "affected",
                            "versionType": "python"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 23 Nov 13:43 UTC · 274 of 275 readable · 270 fully read · documentation 469/469 current