6.1

CVE-2023-6507: python software foundation cpython Improper Privilege Management

CVSS: 6.1v3.1MediumModified
AliasesUBUNTU-CVE-2023-6507openSUSE-SU-2024:13511-1
Published 08-12-2023Last modified 31-07-2026

Vulnerability summary

CVE-2023-6507 is a medium (CVSS 6.1) Improper Privilege Management vulnerability in python software foundation cpython. EPSS estimates a 1.34% chance of exploitation in the next 30 days, higher than 70.8% of scored vulnerabilities.

Overall risk
25/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.1/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.34%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 08-12-2023
    PublishedVulnerability first disclosed.
  2. 31-07-2026
    Last modifiedVulnerability information updated.

Description

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 metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

1.34%

Chance of exploitation in the next 30 days

Percentile

71%

Versus all other CVEs

30-day change

+0.01 pp

From 1.33% on 20-09-2026

20-09-202620-10-2026
EPSS score
1.34%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Opensuse1 product
  • python312&distro=openSUSE Tumbleweed< 3.12.1-1.1
Python1 product
  • python3.12.0 | 3.13.0:alpha1 | 3.13.0:alpha2
Python software foundation1 product
  • cpython< 3.12.1 | ≥ 3.13.0a1, < 3.13.0a3
Ubuntu1 product
  • python3.12< 3.12.1-2

4 vendors · 4 products

References

10 links