{
  "cveId": "CVE-2024-4030",
  "url": "https://patchblox.com/security/cve/CVE-2024-4030",
  "summary": "CVE-2024-4030 is fixed in 4 products on 2 platforms, first by Python 3.12 3.12.4, released June 6, 2024. 8 other affected products have no fix yet. It is not reported as exploited. Patch Radar priority: High.",
  "title": "tempfile.mkdtemp() may be readable and writeable by all users on Windows",
  "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.\n\nIf you\u2019re not using Windows or haven\u2019t changed the temporary directory location then you aren\u2019t affected by this vulnerability. On other platforms the returned directory is consistently readable and writable only by the current user.\n\nThis issue was caused by Python not supporting Unix permissions on Windows. The fix adds support for Unix \u201C700\u201D for the mkdir function on Windows which is used by mkdtemp() to ensure the newly created directory has the proper permissions.",
  "published": "2024-05-07T21:15:09Z",
  "severity": "",
  "cvss": 7.1,
  "cwe": "CWE-276: Incorrect Default Permissions",
  "epss": 0.003,
  "epssPercentile": 0.22885,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://nvd.nist.gov/vuln/detail/CVE-2024-4030",
  "fixes": [
    {
      "platform": "windows-app",
      "product": "Python 3.12",
      "fixedVersion": "3.12.4",
      "fix": "Python 3.12 3.12.4",
      "url": "https://patchblox.com/security/fix/windows-app/python.python.3.12-3.12.4",
      "released": "2024-06-06T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "python312",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "3.12.4-150600.3.3.1",
      "fix": "SUSE-SU-2024:2572-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-2572-1",
      "released": "2024-07-22T10:34:49Z"
    },
    {
      "platform": "linux",
      "product": "python312",
      "release": "sles 15.6",
      "fixedVersion": "3.12.4-150600.3.3.1",
      "fix": "SUSE-SU-2024:2572-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-2572-1",
      "released": "2024-07-22T10:34:49Z"
    },
    {
      "platform": "linux",
      "product": "python312-core",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "3.12.4-150600.3.3.1",
      "fix": "SUSE-SU-2024:2572-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-2572-1",
      "released": "2024-07-22T10:34:49Z"
    },
    {
      "platform": "linux",
      "product": "python312-core",
      "release": "sles 15.6",
      "fixedVersion": "3.12.4-150600.3.3.1",
      "fix": "SUSE-SU-2024:2572-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-2572-1",
      "released": "2024-07-22T10:34:49Z"
    },
    {
      "platform": "linux",
      "product": "python312-documentation",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "3.12.4-150600.3.3.1",
      "fix": "SUSE-SU-2024:2572-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-2572-1",
      "released": "2024-07-22T10:34:49Z"
    }
  ],
  "noFixYet": [
    {
      "platform": "Windows apps",
      "product": "Python 2",
      "status": "no-fix",
      "affectedVersion": "2.7.18150"
    },
    {
      "platform": "Windows apps",
      "product": "Python 3.10",
      "status": "no-fix",
      "affectedVersion": "3.10.11"
    },
    {
      "platform": "Windows apps",
      "product": "Python 3.11",
      "status": "no-fix",
      "affectedVersion": "3.11.9"
    },
    {
      "platform": "Windows apps",
      "product": "Python 3.5",
      "status": "no-fix",
      "affectedVersion": "3.5.4"
    },
    {
      "platform": "Windows apps",
      "product": "Python 3.6",
      "status": "no-fix",
      "affectedVersion": "3.6.8"
    },
    {
      "platform": "Windows apps",
      "product": "Python 3.7",
      "status": "no-fix",
      "affectedVersion": "3.7.9"
    },
    {
      "platform": "Windows apps",
      "product": "Python 3.8",
      "status": "no-fix",
      "affectedVersion": "3.8.10"
    },
    {
      "platform": "Windows apps",
      "product": "Python 3.9",
      "status": "no-fix",
      "affectedVersion": "3.9.13"
    }
  ],
  "dataAsOf": "2026-11-08T00:53:09Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}