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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Suse | — | Upgrade libpython3_11-1_0Upgrade libpython3_12-1_0Upgrade libpython3_12-1_0-32bitUpgrade libpython3_13-1_0Upgrade libpython3_13-1_0-x86-64-v3Upgrade python311-baseUpgrade python312Upgrade python312-32bitUpgrade python312-baseUpgrade python312-base-32bitUpgrade python312-cursesUpgrade python312-dbmUpgrade python312-develUpgrade python312-docUpgrade python312-doc-devhelpUpgrade python312-idleUpgrade python312-testsuiteUpgrade python312-tkUpgrade python312-toolsUpgrade python313Upgrade python313-baseUpgrade python313-base-x86-64-v3Upgrade python313-cursesUpgrade python313-dbmUpgrade python313-develUpgrade python313-docUpgrade python313-doc-devhelpUpgrade python313-idleUpgrade python313-tkUpgrade python313-toolsUpgrade python313-x86-64-v3 | Jul 23, 2024 | May 7, 2024 |
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