
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-4030 affects Python's tempfile.mkdtemp() function on Windows systems. The vulnerability was discovered when it was found that directories created by this function would not always have permissions set to restrict reading and writing to other users, instead inheriting permissions from the default location. This particularly affects alternate configurations or users without a profile directory. The vulnerability does not affect non-Windows platforms or systems where the temporary directory location hasn't been changed (Python Security).
The vulnerability stems from Python not supporting Unix permissions on Windows. The fix implements support for Unix mode "0o700" for the mkdir function on Windows, which is used by mkdtemp() to ensure newly created directories have proper permissions. The vulnerability has been assigned a CVSS 3.1 Base Score of 7.1 (HIGH) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N (CISA ADP).
Successful exploitation of this vulnerability could lead to disclosure of information or addition/modification of data, as temporary directories may be accessible by unauthorized users. The impact is particularly significant in scenarios where the base temporary directory is more permissive than the default (NetApp Advisory).
The fix has been implemented in Python versions 3.13.0b1 and 3.12.4, with backports pending for other security release streams. The solution adds support for Unix "0o700" mode in the mkdir function on Windows, ensuring proper directory permissions. Users are advised to upgrade to these patched versions (Python Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."