#VU96944 Creation of Temporary File With Insecure Permissions in Python - CVE-2024-4030 

 

#VU96944 Creation of Temporary File With Insecure Permissions in Python - CVE-2024-4030

Published: September 9, 2024


Vulnerability identifier: #VU96944
Vulnerability risk: Low
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2024-4030
CWE-ID: CWE-378
Exploitation vector: Local access
Exploit availability: No public exploit available
Vulnerable software:
Python
Software vendor:
Python.org

Description

The vulnerability allows a local user to gain access to sensitive information.

The vulnerability exists due to a directory returned by tempfile.mkdtemp() would not always have permissions set to restrict reading and writing to the temporary directory by other users instead usually inheriting the correct permissions from the default location. A local user can gain access to potentially sensitive information stored in temporary files.

Successful exploitation of the vulnerability requires that an alternate configuration or users without a profile directory.


Remediation

Install updates from vendor's website.

External links