CVE-2024-4030
published high CVSS 3.1 · 7.1tempfile.mkdtemp() may be readable and writeable by all users on Windows
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.8.20 · 3.9.0 to < 3.9.20 · 3.10.0 to < 3.10.15 · 3.11.0 to < 3.11.10 · 3.12.0 to < 3.12.4 · 3.13.0a1 to < 3.13.0b1 · Other versions: unaffected · Platforms: Windows | Affected | Not stated | PSF |
| python | — | cpython0 · 3.13.0a1 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP6 | libpython3_12-1_0aarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | libpython3_12-1_0ppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | libpython3_12-1_0s390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | libpython3_12-1_0x86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP6 | python312aarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312ppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312s390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312x86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-baseaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-baseppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-bases390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-basex86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-cursesaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-cursesppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-cursess390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-cursesx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-dbmaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-dbmppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-dbms390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-dbmx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-develaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-develppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-devels390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-develx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-idleaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-idleppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-idles390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-idlex86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-tkaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-tkppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-tks390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-tkx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-toolsaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-toolsppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-toolss390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-toolsx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | libpython3_12-1_0aarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | libpython3_12-1_0ppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | libpython3_12-1_0s390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | libpython3_12-1_0x86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312aarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312ppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312s390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312x86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-baseaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-baseppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-bases390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-basex86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-cursesaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-cursesppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-cursess390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-cursesx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-dbmaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-dbmppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-dbms390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-dbmx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-develaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-develppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-devels390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-develx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-idleaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-idleppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-idles390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-idlex86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-tkaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-tkppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-tks390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-tkx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-toolsaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-toolsppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-toolss390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-toolsx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libpython3_12-1_0aarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libpython3_12-1_0ppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libpython3_12-1_0s390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libpython3_12-1_0x86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libpython3_12-1_0-32bitx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312aarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312ppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312s390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312x86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-32bitx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-baseaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-baseppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-bases390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-basex86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-base-32bitx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-cursesaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-cursesppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-cursess390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-cursesx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-dbmaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-dbmppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-dbms390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-dbmx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-develaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-develppc64le | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-devels390x | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-develx86_64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-docaarch64 | Advisory build | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.8.20 (affected · python)3.9.0 to < 3.9.20 (affected · python)3.10.0 to < 3.10.15 (affected · python)3.11.0 to < 3.11.10 (affected · python)3.12.0 to < 3.12.4 (affected · python)3.13.0a1 to < 3.13.0b1 (affected · python)Default: unaffected | PSF · cna |
| python | cpython | 0 (affected)3.13.0a1 (affected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-276 CWE-276 Incorrect Default Permissions
References
15- https://github.com/python/cpython/commit/35c799d79177b962ddace2fa068101465570a29a
- https://github.com/python/cpython/commit/5130731c9e779b97d00a24f54cdce73ce9975dfd
- https://github.com/python/cpython/commit/66f8bb76a15e64a1bb7688b177ed29e26230fdee
- https://github.com/python/cpython/commit/6d0850c4c8188035643586ab4d8ec2468abd699e
- https://github.com/python/cpython/commit/81939dad77001556c527485d31a2d0f4a759033e
- https://github.com/python/cpython/commit/8ed546679524140d8282175411fd141fe7df070d
- https://github.com/python/cpython/commit/91e3669e01245185569d09e9e6e11641282971ee
- https://github.com/python/cpython/commit/94591dca510c796c7d40e9b4167ea56f2fdf28ca
- https://github.com/python/cpython/commit/c8f868dc52f98011d0f9b459b6487920bfb0ac4d
- https://github.com/python/cpython/commit/d86b49411753bf2c83291e3a14ae43fefded2f84
- https://github.com/python/cpython/commit/e1dfa978b1ad210d551385ad8073ec6154f53763
- https://github.com/python/cpython/commit/eb29e2f5905da93333d1ce78bc98b151e763ff46
- https://github.com/python/cpython/issues/118486
- https://mail.python.org/archives/list/[email protected]/thread/PRGS5OR3N3PNPT4BMV2VAGN5GMUI5636/
- https://security.netapp.com/advisory/ntap-20240705-0005/
Provider assertions
3PSF · cna
tempfile.mkdtemp() may be readable and writeable by all users on Windows
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a11bfb4f1ba2a6d7dbf2dacd187ef8be1e1b23adda2c1b9b8dacd72f15b96090
- Ingested
- 23 Sep 2026, 08:29:21 UTC
- Source record
- Official CVE record