CVE-2024-4030
Description
On Windows 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. Alternate configurations or users without a profile directory may not have the intended permissions.If you’re not using Windows or haven’t changed the temporary directory location then you aren’t affected by this vulnerability. On other platforms the returned directory is consistently readable and writable only by the current user.This issue was caused by Python not supporting Unix permissions on Windows. The fix adds support for Unix “700” for the mkdir function on Windows which is used by mkdtemp() to ensure the newly created directory has the proper permissions.
How to fix CVE-2024-4030
To remediate CVE-2024-4030, upgrade the affected package to a fixed version below.
- —upgrade to 3.12.4 or later
Is CVE-2024-4030 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 3.12.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
References (15)
- WEBgithub.com/python/cpython/commit/35c799d79177b962ddace2fa068101465570a29a
- WEBgithub.com/python/cpython/commit/5130731c9e779b97d00a24f54cdce73ce9975dfd
- WEBgithub.com/python/cpython/commit/66f8bb76a15e64a1bb7688b177ed29e26230fdee
- WEBgithub.com/python/cpython/commit/6d0850c4c8188035643586ab4d8ec2468abd699e