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.
CVSS Details
- CVSS 3.1 Base Score: 7.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Suse | — | Upgrade python312-testsuiteUpgrade python312-base-32bitUpgrade python313Upgrade python313-toolsUpgrade libpython3_11-1_0Upgrade python313-x86-64-v3Upgrade python312-toolsUpgrade python313-dbmUpgrade python312-cursesUpgrade python312-32bitUpgrade libpython3_12-1_0Upgrade python312-doc-devhelpUpgrade python312-dbmUpgrade libpython3_13-1_0Upgrade python311-baseUpgrade python313-develUpgrade python313-baseUpgrade python313-doc-devhelpUpgrade python313-tkUpgrade python313-idleUpgrade python312-develUpgrade python312-idleUpgrade python312-docUpgrade python313-base-x86-64-v3Upgrade python312Upgrade libpython3_12-1_0-32bitUpgrade python313-cursesUpgrade python312-baseUpgrade libpython3_13-1_0-x86-64-v3Upgrade python313-docUpgrade python312-tk | Jul 23, 2024 | May 7, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub