cbcvebase.
CVE-2023-6597
published 2024-03-19

CVE-2023-6597: An issue was found in the CPython `tempfile.TemporaryDirectory` class affecting versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior. The…

PriorityP342high7.8CVSS 3.1
AVLACHPRNUINSCCHIHAN
EPSS
0.31%
23.3th percentile
An issue was found in the CPython `tempfile.TemporaryDirectory` class affecting versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior. The tempfile.TemporaryDirectory class would dereference symlinks during cleanup of permissions-related errors. This means users which can run privileged programs are potentially able to modify permissions of files referenced by symlinks in some circumstances.

Affected

19 ranges
VendorProductVersion rangeFixed in
debianpypy3< pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)
debianpython2.7< pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)
debianpython3.11< pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)
debianpython3.9< pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)
msrcazl3_python3_3.12.0-4_on_azure_linux_3.0
msrcazl3_python3_3.12.3-1_on_azure_linux_3.0
msrcazl3_tensorflow_2.16.1-9_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_python3_3.9.14-8_on_cbl_mariner_2.0
msrccbl2_python3_3.9.19-1_on_cbl_mariner_2.0
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
python_software_foundationcpython< 3.8.193.8.19
python_software_foundationcpython>= 3.10.0 < 3.10.143.10.14
python_software_foundationcpython>= 3.11.0 < 3.11.83.11.8
python_software_foundationcpython>= 3.12.0 < 3.12.13.12.1
python_software_foundationcpython>= 3.13.0a1 < 3.13.0a33.13.0a3
python_software_foundationcpython>= 3.9.0 < 3.9.193.9.19

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
osv7.8HIGH
vendor_debian7.8HIGH
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.6HIGH
vendor_oracle5.6HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.