개요
이 취약점이 무엇인지
The ftpcp() function in Lib/ftplib.py was not updated when CVE-2021-4189 was fixed. While makepasv() was patched to replace server-supplied PASV host addresses with the actual peer address (getpeername()[0]), ftpcp() still calls parse227() directly and passes the raw attacker-controllable IP address and port to target.sendport(). This patch is related to CVE-2021-4189.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| CPythonPython Software Foundation | 최초 버전 | ≤ | 취약 | < | 3.10.21 | 3.10.21이상 |
| 3.11.0 | ≤ | 취약 | < | 3.11.16 | 3.11.16이상 | |
| 3.12.0 | ≤ | 취약 | < | 3.12.14 | 3.12.14이상 | |
| 3.13.0 | ≤ | 취약 | < | 3.13.14 | 3.13.14이상 | |
| 3.14.0 | ≤ | 취약 | < | 3.14.6 | 3.14.6이상 | |
| 3.15.0a1 | ≤ | 취약 | < | 3.15.0b2 | 3.15.0b2이상 | |
할당 기관(CNA) 레코드 기준 (NVD 분석 전). 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
기타11
- github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f
- github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06
- github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0
- github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763
- github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d
6개 더 보기
- github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9
- github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb
- github.com/python/cpython/issues/87451
- github.com/python/cpython/pull/149648
- mail.python.org/archives/list/[email protected]/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/
- cert-portal.siemens.com/productcert/html/ssa-457936.html