개요
이 취약점이 무엇인지
The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition. An attacker who can modify the tree during cleanup can replace a directory with a symbolic link, causing files outside of the temporary directory to be deleted or have their permissions and file flags reset, with the privileges of the process performing the cleanup. Note that platforms where shutil.rmtree.avoids_symlink_attacks is false, remain affected, and file flags may still be reset outside of the tree on all platforms.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| CPythonPython Software Foundation | 최초 버전 | ≤ | 취약 | < | 3.12.15 | 3.12.15이상 |
| 3.13.0 | ≤ | 취약 | < | 3.13.18 | 3.13.18이상 | |
| 3.14.0 | ≤ | 취약 | < | 3.14.9 | 3.14.9이상 | |
| 3.15.0a1 | ≤ | 취약 | < | 3.15.0rc3 | 3.15.0rc3이상 | |
할당 기관(CNA) 레코드 기준 (NVD 분석 전). 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
기타14
- github.com/python/cpython/commit/0478b52788117db4b831b3efd648f56b777628aa
- github.com/python/cpython/commit/06ef3d43fdaf4da97af12fa694b4886092c4b970
- github.com/python/cpython/commit/458e7134a5af7f86aee9d21b51cf499b41aa4420
- github.com/python/cpython/commit/58ed0259cae509a19138795df302fe60b544dc74
- github.com/python/cpython/commit/5c20517a4fc56683efe63a7751020db9573f538d
9개 더 보기
- github.com/python/cpython/commit/8fa0152f7dbd65b6341a7b00a56227127dc2ec99
- github.com/python/cpython/commit/aa17c688d2c160969f2c8963f4454cdd139808e7
- github.com/python/cpython/commit/ac0487e42060a39ce648e40f0a63e37391b2d816
- github.com/python/cpython/commit/c39b52d00b42200aaadff679e2fe3f1006d57c58
- github.com/python/cpython/commit/e1f3590f155c6d66007e958c98c9d69316551993
- github.com/python/cpython/commit/e82a65ade532d4204e9c507e462dbcce8815fb93
- github.com/python/cpython/issues/157579
- github.com/python/cpython/pull/157580
- openwall.com/lists/oss-security/2026/09/29/40