PT-2024-7267

CVE-2024-4030

·

Published

2024-05-07

·

Updated

2025-11-07

Description by

CVSS 3.1
7.1
High
MetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions: Python versions prior to 3.13
Description: The issue is related to the tempfile.mkdtemp() function in Python, which on Windows, may not always set the correct permissions for the temporary directory, allowing other users to read and write to it. This is due to Python not supporting Unix permissions on Windows. The fix adds support for Unix "700" permissions for the mkdir function on Windows, ensuring the newly created directory has the proper permissions. If you are not using Windows or haven't changed the temporary directory location, you are not affected by this issue. On other platforms, the returned directory is consistently readable and writable only by the current user.
Recommendations: Update Python to version 3.13 to resolve the issue. As a temporary workaround, consider restricting access to the temporary directory created by tempfile.mkdtemp() to minimize the risk of exploitation. Avoid using the tempfile.mkdtemp() function on Windows until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
BIT-PYTHON-2024-4030
OPENSUSE-SU-2024:14109-1
OPENSUSE-SU-2024:14295-1
OPENSUSE-SU-2024:14331-1
OPENSUSE-SU-2024:14340-1
OPENSUSE-SU-2024:14345-1
OPENSUSE-SU-2024:14346-1
OPENSUSE-SU-2024:14434-1
OPENSUSE-SU-2024_2572-1
OPENSUSE-SU-2025:15713-1
PSF-2024-3
SUSE-SU-2024:2572-1
SUSE-SU-2025:20154-1
SUSE-SU-2025:20374-1
Found an issue in the description? Have something to add? Feel free to write us 👾