Azure Linux 3.0 Security Update: python3 (CVE-2023-6507)

medium Nessus Plugin ID 295426

Synopsis

The remote Azure Linux host is missing one or more security updates.

Description

The version of python3 installed on the remote Azure Linux 3.0 host is prior to tested version. It is, therefore, affected by a vulnerability as referenced in the CVE-2023-6507 advisory.

- 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`). (CVE-2023-6507)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://nvd.nist.gov/vuln/detail/CVE-2023-6507

Plugin Details

Severity: Medium

ID: 295426

File Name: azure_linux_CVE-2023-6507.nasl

Version: 1.1

Type: local

Published: 1/22/2026

Updated: 1/22/2026

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 4.5

Vector: CVSS2#AV:N/AC:L/Au:M/C:N/I:C/A:N

CVSS Score Source: CVE-2023-6507

CVSS v3

Risk Factor: Medium

Base Score: 4.9

Temporal Score: 4.3

Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:microsoft:azure_linux:python3-libs, p-cpe:/a:microsoft:azure_linux:python3-tools, x-cpe:/o:microsoft:azure_linux, p-cpe:/a:microsoft:azure_linux:python3-devel, p-cpe:/a:microsoft:azure_linux:python3-debuginfo, p-cpe:/a:microsoft:azure_linux:python3-test, p-cpe:/a:microsoft:azure_linux:python3-curses, p-cpe:/a:microsoft:azure_linux:python3

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/AzureLinux/release, Host/AzureLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 9/10/2024

Vulnerability Publication Date: 12/8/2023

Reference Information

CVE: CVE-2023-6507