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.
- Yayın
- 7 May 2024
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,3 · 21. yüzdelik
- CWE
- CWE-276
Takip etmek için giriş yap · Takip ettiğin kayıt KEV’e girer, istismarı çıkar ya da güncellenirse bildirim alırsın.
Rapor araçları
Aksiyon skoru
28
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 28 / 40 · 7.1 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · %0,3
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- tam
Vulnrichment: CISA'nın karar ağacı girdileri.
Noroxi analizi
Bu kayıt için henüz Noroxi analizi yok
Veritabanındaki yüz binlerce zafiyetin tamamına elle analiz yazmıyoruz; bu dürüst olmazdı. Öne çıkan ve sahada etkisi olan zafiyetler için mekanizma, tespit ve kapatma adımlarını ekibimiz yazıyor.
Bu ürünü kullanıyoruz, yardım isteyinEtkilenen sistemler
| Üretici | Ürün | CPE |
|---|---|---|
| python | cpython | cpe:2.3:a:python:cpython |
Üreticinin bildirdiği sürümler
Kaydı açan otorite (PSF) tarafından bildirilen etkilenen sürüm aralıkları. NVD'nin CPE analizinden bağımsızdır ve genellikle ondan önce gelir.
Python Software Foundation CPython
- 3.8.20 öncesietkilenir · python
- 3.9.0 ve sonrası · 3.9.20 öncesietkilenir · python
- 3.10.0 ve sonrası · 3.10.15 öncesietkilenir · python
- 3.11.0 ve sonrası · 3.11.10 öncesietkilenir · python
- 3.12.0 ve sonrası · 3.12.4 öncesietkilenir · python
- 3.13.0a1 ve sonrası · 3.13.0b1 öncesietkilenir · python
Paket düzeyi etkilenme
OSV ve GitHub Advisory verisi: ekosistem, paket ve aralık. SBOM eşleşmesi bu tabloyu kullanır.
| Ekosistem | Paket | Etkilenen aralık | Düzeltme |
|---|---|---|---|
| openSUSE:Leap 15.6 | python312-documentation | 3.12.4-150600.3.3.1 öncesi | 3.12.4-150600.3.3.1 |
| openSUSE:Tumbleweed | python310 | 3.10.15-1.1 öncesi | 3.10.15-1.1 |
| openSUSE:Tumbleweed | python311 | 3.11.9-7.1 öncesi | 3.11.9-7.1 |
| openSUSE:Tumbleweed | python312 | 3.12.5-1.1 öncesi | 3.12.5-1.1 |
| openSUSE:Tumbleweed | python38 | 3.8.20-1.1 öncesi | 3.8.20-1.1 |
| openSUSE:Tumbleweed | python39 | 3.9.20-1.1 öncesi | 3.9.20-1.1 |
| SUSE:Linux Enterprise Module for Python 3 15 SP6 | python312 | 3.12.4-150600.3.3.1 öncesi | 3.12.4-150600.3.3.1 |
| SUSE:Linux Enterprise Module for Python 3 15 SP6 | python312 | 3.12.4-150600.3.3.1 öncesi | 3.12.4-150600.3.3.1 |
| SUSE:Linux Enterprise Module for Python 3 15 SP6 | python312-core | 3.12.4-150600.3.3.1 öncesi | 3.12.4-150600.3.3.1 |
| SUSE:Linux Enterprise Module for Python 3 15 SP6 | python312-core | 3.12.4-150600.3.3.1 öncesi | 3.12.4-150600.3.3.1 |
| SUSE:Linux Micro 6.0 | python311 | 3.11.11-1.1 öncesi | 3.11.11-1.1 |
| SUSE:Linux Micro 6.0 | python311-core | 3.11.11-1.1 öncesi | 3.11.11-1.1 |
| SUSE:Linux Micro 6.1 | python311 | 3.11.12-slfo.1.1_1.1 öncesi | 3.11.12-slfo.1.1_1.1 |
| SUSE:Linux Micro 6.1 | python311-core | 3.11.12-slfo.1.1_1.1 öncesi | 3.11.12-slfo.1.1_1.1 |
Aynı üründe
python software foundation: tüm kayıtlarAynı birincil ürünün en yüksek skorlu diğer kayıtları.
- CVE-2025-4517Arbitrary writes via tarfile realpath overflow37İzleyin
- CVE-2026-19445Use-after-free of a server-side SSLContext when sni_callback switches contexts36İzleyin
- CVE-2026-6100Use-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressure36İzleyin
- CVE-2026-3298Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes35İzleyin
- CVE-2024-12254Unbounded memory buffering in SelectorSocketTransport.writelines()35İzleyin
- CVE-2024-8088Infinite loop when iterating over zip archive entry names from zipfile.Path34İzleyin
Düzeltme
Hangi sürüme geçmeli
Üretici, paket deposu ve Microsoft kayıtlarından derlenen düzeltme sürümleri. Yükseltmeden önce üreticinin notunu doğrulayın.
| Ürün / paket | Düzeltilmiş sürüm | Kaynak |
|---|---|---|
| Python Software Foundation CPython | 3.10.15 | Üretici (CNA) |
| Python Software Foundation CPython | 3.11.10 | Üretici (CNA) |
| Python Software Foundation CPython | 3.12.4 | Üretici (CNA) |
| Python Software Foundation CPython | 3.13.0b1 | Üretici (CNA) |
| Python Software Foundation CPython | 3.8.20 | Üretici (CNA) |
| Python Software Foundation CPython | 3.9.20 | Üretici (CNA) |
| opensuse:python310 | 3.10.15-1.1 · openSUSE:Tumbleweed | Paket deposu (OSV) |
| opensuse:python311 | 3.11.9-7.1 · openSUSE:Tumbleweed | Paket deposu (OSV) |
| opensuse:python312 | 3.12.4-150600.3.3.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:python312-core | 3.12.4-150600.3.3.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:python312-documentation | 3.12.4-150600.3.3.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:python38 | 3.8.20-1.1 · openSUSE:Tumbleweed | Paket deposu (OSV) |
| opensuse:python39 | 3.9.20-1.1 · openSUSE:Tumbleweed | Paket deposu (OSV) |
| suse:python311 | 3.11.11-1.1 · SUSE:Linux Micro 6.0 | Paket deposu (OSV) |
| suse:python311-core | 3.11.11-1.1 · SUSE:Linux Micro 6.0 | Paket deposu (OSV) |
| suse:python312 | 3.12.4-150600.3.3.1 · SUSE:Linux Enterprise Module for Python 3 15 SP6 | Paket deposu (OSV) |
| suse:python312-core | 3.12.4-150600.3.3.1 · SUSE:Linux Enterprise Module for Python 3 15 SP6 | Paket deposu (OSV) |
İstismar durumu
Bilinen kamuya açık istismar yok
Şu an kamuya açık bir istismar görülmedi. Bu, güvende olduğunuz anlamına gelmez; yalnızca eşiğin biraz daha yüksek olduğunu gösterir.
Araştırma bağlamı
Pentester ve araştırmacı için: saldırı profili, puan anlaşmazlığı, zaman çizelgesi, yama commit’leri, kredi, varyant ve zincir adayları, bug bounty kapsamı. Hepsi mevcut veriden türetilir; istismar kodu içermez.
Zaman çizelgesi
Yayından bugüne: kavram kanıtı, Metasploit modülü, CISA KEV ve düzeltme kaydı. Tarihler kaynakların bildirdiği tarihlerdir.
Yayın dışında tarihli olay yok.
FIRST EPSS günlük puanı; yalnızca 0,01 ve üstü değişimler kaydedilir (adım grafiği).
Yama ve commit bağlantıları
Referanslardaki commit, PR ve diff adresleri. Patch-diff ve varyant avı için başlangıç noktası; istismar değil, düzeltmedir.
- python/cpythoncommit 8ed5466
- python/cpythoncommit 35c799d
- python/cpythoncommit 5130731
- python/cpythoncommit 66f8bb7
- python/cpythoncommit 6d0850c
- python/cpythoncommit 81939da
- python/cpythoncommit 91e3669
- python/cpythoncommit 94591dc
- python/cpythoncommit c8f868d
- python/cpythoncommit d86b494
- python/cpythoncommit e1dfa97
- python/cpythoncommit eb29e2f
Kredi
Tüm araştırmacılarCNA kaydında adı geçen bulan, bildiren ve analistler. Ada tıkla, aynı araştırmacının diğer kayıtlarını gör.
- Aobo Wangbulan
Varyant adayları
Aynı üründe aynı zafiyet sınıfı, 18 ay içinde. Yama kök nedeni kapatmadıysa kardeş hata burada olur.
Gece hesaplanan ilişki yok.
Zincir adayları
Aynı üründe kimlik doğrulama atlatma ile yetki isteyen bir açık kısa aralıkla yayımlanmış: birlikte kimlik doğrulamasız bir yola dönüşebilir.
—
Bug bounty kapsamı
Bilinen herkese açık program yok.
Kaynak: bounty-targets-data (HackerOne, Bugcrowd, Intigriti, YesWeHack herkese açık listeleri).
Teknik detay
Saldırı koşulları
- Sisteme yerel erişimi olan biri tetikleyebilir.
- Düşük yetkili bir hesap yeterli.
- Kullanıcının bir şey yapması gerekmez.
- Özel bir koşul gerekmez; tekrarlanabilir.
Başarılı olursa
- Gizlilik
- yüksek · veriler okunabilir
- Bütünlük
- yüksek · veri ya da yapılandırma değiştirilebilir
- Erişilebilirlik
- yok
- Saldırı vektörü
- Yerel
- Karmaşıklık
- Düşük
- Gereken yetki
- Düşük
- Kullanıcı etkileşimi
- Gerekmez
- Kapsam
- Değişmez
- Gizlilik etkisi
- Yüksek
- Bütünlük etkisi
- Yüksek
- Erişilebilirlik etkisi
- Yok
Zayıflık sınıfı (CWE)
CWE-276 · Incorrect Default PermissionsCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
nvd-secondary
Saldırı bağlamı
Bu zafiyet sınıfının (CWE) MITRE CAPEC saldırı desenleri ve ATT&CK teknikleri. Tespit kuralı ve tehdit avı için başlangıç noktası.
Saldırı desenleri (CAPEC)
Değişiklik günlüğü
- Düzeltme✗ → ✓
Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →
Referanslar
- github.com/python/cpython/commit/8ed546679524140d8282175411fd141fe7df070d
- github.com/python/cpython/commit/35c799d79177b962ddace2fa068101465570a29a
- github.com/python/cpython/commit/5130731c9e779b97d00a24f54cdce73ce9975dfd
- github.com/python/cpython/commit/66f8bb76a15e64a1bb7688b177ed29e26230fdee
- github.com/python/cpython/commit/6d0850c4c8188035643586ab4d8ec2468abd699e
- github.com/python/cpython/commit/81939dad77001556c527485d31a2d0f4a759033e
- github.com/python/cpython/commit/91e3669e01245185569d09e9e6e11641282971ee
- github.com/python/cpython/commit/94591dca510c796c7d40e9b4167ea56f2fdf28ca
- github.com/python/cpython/commit/c8f868dc52f98011d0f9b459b6487920bfb0ac4d
- github.com/python/cpython/commit/d86b49411753bf2c83291e3a14ae43fefded2f84
- github.com/python/cpython/commit/e1dfa978b1ad210d551385ad8073ec6154f53763
- github.com/python/cpython/commit/eb29e2f5905da93333d1ce78bc98b151e763ff46
- github.com/python/cpython/issues/118486
- mail.python.org/archives/list/security-announce@python.org/thread/PRGS5OR3N3PNPT4BMV2VAGN5GMUI5636/
- security.netapp.com/advisory/ntap-20240705-0005/
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.