{"schemaVersion":3,"id":"CVE-2023-6507","aliases":["UBUNTU-CVE-2023-6507","openSUSE-SU-2024:13511-1"],"status":"published","duplicateOf":null,"title":null,"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.\n\nWhen 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.\n\nThis issue only impacts CPython processes run with sufficient privilege to make the `setgroups` system call (typically `root`).","dates":{"published":"2023-12-08T18:20:49.583Z","modified":"2026-07-31T14:09:16.715Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","exploitability":2.3,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01337,"percentile":0.70823,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.011000000000000072,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01326},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01337,"percentile":0.70823}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01326,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01337,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01337,"percentile":0.70823}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-269","name":"Improper Privilege Management","description":"The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/269.html"}],"affected":[{"vendor":"ubuntu","product":"python3.12","name":"python3.12","label":"python3.12","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.12","purlType":"deb","versions":[{"text":"< 3.12.1-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.12.1-2","eol":null,"hubHref":null},{"vendor":"python software foundation","product":"cpython","name":"CPython","label":"cpython","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.12.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.13.0a1, < 3.13.0a3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.12.1 | ≥ 3.13.0a1, < 3.13.0a3","eol":null,"hubHref":"/vendor/python_software_foundation/cpython"},{"vendor":"python","product":"python","name":"python","label":"python","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.12.0","noFixRecorded":false,"fixedIn":null},{"text":"3.13.0:alpha1","noFixRecorded":false,"fixedIn":null},{"text":"3.13.0:alpha2","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.12.0 | 3.13.0:alpha1 | 3.13.0:alpha2","eol":{"isEol":false,"eolDate":"2028-10-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"3.12","label":"3.12","eolFrom":"2028-10-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"3.12.15"},"product":{"name":"python","label":"Python","category":"lang"}},"hubHref":"/vendor/python/python"},{"vendor":"opensuse","product":"python312&distro=openSUSE Tumbleweed","name":"python312","label":"python312&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/python312&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 3.12.1-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.12.1-1.1","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/python/cpython/issues/112334","label":"github.com/python/cpython/issues/112334","hostname":"github.com","tags":["Issue Tracking","Patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/AUL7QFHBLILGISS7U63B47AYSSGJJQZD/","label":"mail.python.org/archives/list/security-announce@python.org/thread/AUL7QFHBLILGISS7U63B47AYSSGJJQZD/","hostname":"mail.python.org","tags":["Vendor Advisory","REPORT","Third Party Advisory"]},{"url":"https://github.com/python/cpython/commit/9fe7655c6ce0b8e9adc229daf681b6d30e6b1610","label":"github.com/python/cpython/commit/9fe7655c6ce0b8e9adc229daf681b6d30e6b1610","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/10e9bb13b8dcaa414645b9bd10718d8f7179e82b","label":"github.com/python/cpython/commit/10e9bb13b8dcaa414645b9bd10718d8f7179e82b","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/85bbfa8a4bbdbb61a3a84fbd7cb29a4096ab8a06","label":"github.com/python/cpython/commit/85bbfa8a4bbdbb61a3a84fbd7cb29a4096ab8a06","hostname":"github.com","tags":["Patch"]},{"url":"https://ubuntu.com/security/CVE-2023-6507","label":"ubuntu.com/security/CVE-2023-6507","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-6507","label":"www.cve.org/CVERecord?id=CVE-2023-6507","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6891-1","label":"ubuntu.com/security/notices/USN-6891-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2023-6507","label":"www.suse.com/security/cve/CVE-2023-6507","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6507","label":"nvd.nist.gov/vuln/detail/CVE-2023-6507","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-6891-1"],"duplicates":[],"related":["USN-6891-1"]},"timeline":[{"kind":"published","date":"2023-12-08T18:20:49.583Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-31T14:09:16.715Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T10:55:01.932Z","stale":false,"partial":false}}