CVE Database›CVE-2023-6507

CVE-2023-6507

python: Improper privileges drop on subprocess module

Loading…

Severity

Moderate

Red Hat Product Security

6.1

CVSS 3.1

Review impact separately from score.

Published · December 8, 2023

Updated · August 1, 2026

Description

A flaw was found in Python's subprocess module. When creating a new subprocess, the developer may specify a list of extra groups through the 'extra_groups=` parameter. When this optional parameter is informed with an empty list, the module fails to properly clean the associated groups from the new sub-process's parent before executing the new sub-process. If the parent process has high privileges, the sub-process created may have unnecessarily high privileges, leading to possible confidentiality and integrity issues when properly exploited.

Statement

The Python versions as distributed with Red Hat Enterprise Linux 6, 7, 8 and 9 are not vulnerable to this flaw, as it doesn't contain the affected code or it ships a version where the fix is already present.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 6.1
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

CWE-269 · Improper Privilege Management