{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2024-4030",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2024-4030",
    "idYear": 2024,
    "status": "PUBLISHED",
    "publishedAt": "2024-05-07T21:02:55.284Z",
    "updatedAt": "2024-09-07T02:44:36.613Z",
    "importedAt": "2026-10-24T01:57:16.009Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "tempfile.mkdtemp() may be readable and writeable by all users on Windows",
      "summary": "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’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.\n\nThis 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.",
      "affected": [
        {
          "vendor": "Python Software Foundation",
          "product": "CPython",
          "platforms": [
            "Windows"
          ],
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0",
              "status": "affected",
              "versionType": "python",
              "lessThan": "3.8.20"
            },
            {
              "version": "3.9.0",
              "status": "affected",
              "versionType": "python",
              "lessThan": "3.9.20"
            },
            {
              "version": "3.10.0",
              "status": "affected",
              "versionType": "python",
              "lessThan": "3.10.15"
            },
            {
              "version": "3.11.0",
              "status": "affected",
              "versionType": "python",
              "lessThan": "3.11.10"
            },
            {
              "version": "3.12.0",
              "status": "affected",
              "versionType": "python",
              "lessThan": "3.12.4"
            },
            {
              "version": "3.13.0a1",
              "status": "affected",
              "versionType": "python",
              "lessThan": "3.13.0b1"
            }
          ]
        }
      ]
    }
  }
}