{"answers":{"affected":"1 open source package ship an affected version, including python.","exploited":"There is no known exploitation of CVE-2024-4030 in the wild and no public exploit code.","fix":"Upgrade python to 3.12.4 or later.","what":"CVE-2024-4030 is a high-severity vulnerability in CPython, published on 7 May 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-4030 and fix it if it is affected.\n\nWhat it is: CVE-2024-4030 is a high-severity vulnerability in CPython, published on 7 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-4030 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- python (Bitnami): affected all versions; fixed in 3.12.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-4030/ (Markdown: https://insights.sbomify.com/CVE-2024-4030/index.md)","id":"CVE-2024-4030","markdown":"https://insights.sbomify.com/CVE-2024-4030/index.md","name":"CVE-2024-4030","record":{"aliases":["BIT-python-2024-4030","GHSA-2w87-6hh6-mqrj","PSF-2024-3","openSUSE-SU-2024:14331-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Python standard library","requires_auth":"low_privilege","summary":"On Windows, tempfile.mkdtemp() may create directories with overly permissive access rights, allowing other users to read or modify temporary files.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"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’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.","ecosystems":["Bitnami","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"tempfile.mkdtemp() may be readable and writeable by all users on Windows","id":"CVE-2024-4030","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"misconfiguration","year":"2024"},"n_packages":2,"n_references":15,"next":{"headline":"MEVO WEBCAM APP Windows Unquoted Service Path Vulnerability","id":"CVE-2024-4031"},"packages":[{"ecosystem":"Bitnami","fixed":["3.12.4"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2024-4030"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.9.20-1.1"],"introduced":["0"],"last_affected":[],"package":"python39","purl":"pkg:rpm/opensuse/python39\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14331-1"}],"prev":{"headline":"Wildfly: no timeout for eap management interface may lead to denial of service (dos)","id":"CVE-2024-4029"},"products":["CPython"],"published":"2024-05-07","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-07","vendors":["Python Software Foundation"]},"summary":"On Windows, tempfile.mkdtemp() may create directories with overly permissive access rights, allowing other users to read or modify temporary files.","url":"https://insights.sbomify.com/CVE-2024-4030/"}