CVE-2024-4030 | 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.

公開: 2024-05-07 最終更新: 2026-06-17 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2024-4030 は低リスク(36.2/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 0.30%、21 パーセンタイル) 推奨対応: 悪用情報と EPSS の推移を監視し、必要に応じて優先度を見直してください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2024-4030 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 0.03% 0.30% +0.27%
2 2025-11-21 0.05% 0.03% -0.03%
3 2025-11-18 0.05%

EPSS の全履歴 (全 6 件)

CVE-2024-4030 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
7.1 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N クリックして展開
攻撃ベクター (AV:L)
対象ホスト上でコードを実行できること、または別ユーザーの誤操作・悪意ある操作が前提になる。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:L)
一般ユーザー権限があれば足り、管理者(root 相当)は不要。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:N)
業務継続に支障が出るレベルの停止や劣化は想定されない。
1.8 5.2 134c704f-9b21-4f2e-91b3-4a467353bcc0

CVE-2024-4030 の弱点分類(列挙)

CVE-2024-4030 の OS トラッカー

vendor priority summary link
debian unimportant CVE-2024-4030 unimportant priority: Debian including 3 source packages (python2.7, python3.11, python3.9), 3 status rows across 2 suites (bookworm, bullseye): resolved 3. https://security-tracker.debian.org/tracker/CVE-2024-4030
suse medium https://www.suse.com/security/cve/CVE-2024-4030/
ubuntu medium CVE-2024-4030 medium priority: Ubuntu including 10 source packages (python2.7, python3.10, …), 59 status rows across 8 suites (bionic, focal, jammy, mantic, noble, trusty, upstream, xenial): DNE 31, not-affected 18, needs-triage 10. https://ubuntu.com/security/CVE-2024-4030

CVE-2024-4030 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
データセットに影響を受ける製品はありません。

CVE-2024-4030 の参考情報

URL タグ
https://github.com/python/cpython/commit/35c799d79177b962ddace2fa068101465570a29a
https://github.com/python/cpython/commit/5130731c9e779b97d00a24f54cdce73ce9975dfd
https://github.com/python/cpython/commit/66f8bb76a15e64a1bb7688b177ed29e26230fdee
https://github.com/python/cpython/commit/6d0850c4c8188035643586ab4d8ec2468abd699e
https://github.com/python/cpython/commit/81939dad77001556c527485d31a2d0f4a759033e
https://github.com/python/cpython/commit/8ed546679524140d8282175411fd141fe7df070d
https://github.com/python/cpython/commit/91e3669e01245185569d09e9e6e11641282971ee
https://github.com/python/cpython/commit/94591dca510c796c7d40e9b4167ea56f2fdf28ca
https://github.com/python/cpython/commit/c8f868dc52f98011d0f9b459b6487920bfb0ac4d
https://github.com/python/cpython/commit/d86b49411753bf2c83291e3a14ae43fefded2f84
https://github.com/python/cpython/commit/e1dfa978b1ad210d551385ad8073ec6154f53763
https://github.com/python/cpython/commit/eb29e2f5905da93333d1ce78bc98b151e763ff46
https://github.com/python/cpython/issues/118486
https://mail.python.org/archives/list/[email protected]/thread/PRGS5OR3N3PNPT4BMV2VAGN5GMUI5636/
https://security.netapp.com/advisory/ntap-20240705-0005/
cvelogic Threat Intelligence