Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2024-4030

tempfile.mkdtemp() may be readable and writeable by all users on Windows

High7.1EPSS 0.30%
Published
Updated
Reserved
Assigned by
PSF

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.

Scores

CVSS scores of CVE-2024-4030, by who scored it
Scored byCVSSScoreVector
CISA-ADPADP (enrichment)3.1High7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
NVDNVD · Deferred3.1High7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS (exploitation in 30 days)
0.30% · top 77% of all CVEs (6 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: no · Technical impact: total
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.1.

Weakness

Affected products

  • Python Software Foundation · CPython

    • affected < 3.8.20
    • affected 3.9.0 – < 3.9.20
    • affected 3.10.0 – < 3.10.15
    • affected 3.11.0 – < 3.11.10
    • affected 3.12.0 – < 3.12.4
    • affected 3.13.0a1 – < 3.13.0b1

References (15)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2024-4030 badge
[![CVE-2024-4030](https://trackcve.app/badge/CVE-2024-4030.svg)](https://trackcve.app/cve/CVE-2024-4030)

Record last updated .