CVEMETERBack to radar
OFFICIAL RECORD · Python

CVE-2024-4030

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 7.1 · high

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

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.300% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 7.1 · published by Ubuntu Security
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Assessment source · checked 2026-11-19T12:48:08.476Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:25:55.090ZCISA KEV
cvssverified2026-11-19T12:48:08.476ZUbuntu Security
epssverified2026-11-19T16:04:38.699ZFIRST EPSS
patchesunknownunknownunknown
affectedverified2026-11-19T12:57:15.458ZCVE Program
lifecycleverified2026-11-19T12:57:15.458ZCVE Program

Affected versions and configuration

Python Software Foundation CPython (Windows); default status: unaffected: 0 to < 3.8.20 [affected; scheme: python]; 3.9.0 to < 3.9.20 [affected; scheme: python]; 3.10.0 to < 3.10.15 [affected; scheme: python]; 3.11.0 to < 3.11.10 [affected; scheme: python]; 3.12.0 to < 3.12.4 [affected; scheme: python]; 3.13.0a1 to < 3.13.0b1 [affected; scheme: python]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "repo": "https://github.com/python/cpython",
      "vendor": "Python Software Foundation",
      "product": "CPython",
      "versions": [
        {
          "status": "affected",
          "version": "0",
          "lessThan": "3.8.20",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.9.0",
          "lessThan": "3.9.20",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.10.0",
          "lessThan": "3.10.15",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.11.0",
          "lessThan": "3.11.10",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.12.0",
          "lessThan": "3.12.4",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.13.0a1",
          "lessThan": "3.13.0b1",
          "versionType": "python"
        }
      ],
      "platforms": [
        "Windows"
      ],
      "defaultStatus": "unaffected"
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "cvssV3_1": {
            "scope": "UNCHANGED",
            "version": "3.1",
            "baseScore": 7.1,
            "attackVector": "LOCAL",
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
            "integrityImpact": "HIGH",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "availabilityImpact": "NONE",
            "privilegesRequired": "LOW",
            "confidentialityImpact": "HIGH"
          }
        },
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2024-4030",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2024-05-08T15:32:37.215710Z"
            }
          }
        }
      ],
      "affected": [
        {
          "cpes": [
            "cpe:2.3:a:python:cpython:*:*:*:*:*:*:*:*"
          ],
          "vendor": "python",
          "product": "cpython",
          "versions": [
            {
              "status": "affected",
              "version": "0"
            },
            {
              "status": "affected",
              "version": "3.13.0a1"
            }
          ],
          "defaultStatus": "unknown"
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2024-06-04T17:55:02.857Z"
      }
    },
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://mail.python.org/archives/list/[email protected]/thread/PRGS5OR3N3PNPT4BMV2VAGN5GMUI5636/",
          "tags": [
            "vendor-advisory",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/issues/118486",
          "tags": [
            "issue-tracking",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/81939dad77001556c527485d31a2d0f4a759033e",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/8ed546679524140d8282175411fd141fe7df070d",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/35c799d79177b962ddace2fa068101465570a29a",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/5130731c9e779b97d00a24f54cdce73ce9975dfd",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/66f8bb76a15e64a1bb7688b177ed29e26230fdee",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/6d0850c4c8188035643586ab4d8ec2468abd699e",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/91e3669e01245185569d09e9e6e11641282971ee",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/94591dca510c796c7d40e9b4167ea56f2fdf28ca",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/c8f868dc52f98011d0f9b459b6487920bfb0ac4d",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/d86b49411753bf2c83291e3a14ae43fefded2f84",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/e1dfa978b1ad210d551385ad8073ec6154f53763",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/python/cpython/commit/eb29e2f5905da93333d1ce78bc98b151e763ff46",
          "tags": [
            "patch",
            "x_transferred"
          ]
        },
        {
          "url": "https://security.netapp.com/advisory/ntap-20240705-0005/",
          "tags": [
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-01T20:26:57.265Z"
      }
    }
  ]
}
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "python3.12",
    "debian": "https://tracker.debian.org/pkg/python3.12",
    "source": "https://ubuntu.com/security/cve?package=python3.12",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=python3.12",
    "statuses": [
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "Windows Only",
        "release_codename": "mantic"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "Windows Only",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      }
    ]
  }
]
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "python3.10",
    "debian": "https://tracker.debian.org/pkg/python3.10",
    "source": "https://ubuntu.com/security/cve?package=python3.10",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=python3.10",
    "statuses": [
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "Windows Only",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "mantic"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      }
    ]
  }
]
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "python3.11",
    "debian": "https://tracker.debian.org/pkg/python3.11",
    "source": "https://ubuntu.com/security/cve?package=python3.11",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=python3.11",
    "statuses": [
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "Windows Only",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "Windows Only",
        "release_codename": "mantic"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      }
    ]
  }
]
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

No correction has been verified in the connected records. This does not mean the system is secure or that no vendor correction exists.

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history