🇰🇷 한글 설명
Windows의 Python 3.5.0 이하 버전에서 신뢰할 수 없는 검색 경로 취약점이 존재하며, 현재 작업 디렉토리의 악의적인 readline.pyd 파일을 통해 로컬 사용자가 권한 상승 공격을 수행할 수 있습니다. Python 개발사는 이것이 오랜 기간 동안의 동작 방식이라 변경할 수 없다고 명시했습니다.
💡 쉬운 설명
Windows에서 Python을 사용할 때, 악의적인 파일이 있는 폴더에서 Python을 실행하면 해커가 컴퓨터 권한을 얻을 수 있습니다. Python이 필요한 파일을 찾을 때 현재 폴더를 먼저 확인하기 때문입니다.
🇺🇸 원문 (English)
Untrusted search path vulnerability in python.exe in Python through 3.5.0 on Windows allows local users to gain privileges via a Trojan horse readline.pyd file in the current working directory. NOTE: the vendor says "It was determined that this is a longtime behavior of Python that cannot really be altered at this point."
📍 영향받는 시스템
Windows 운영체제의 Python 3.5.0 이하 모든 버전
⚔️ 공격 벡터
현재 작업 디렉토리에 악의적인 readline.pyd 파일을 배치하고 Python 실행을 유도
🛡️ 대응 방법
Python을 3.5.1 이상으로 업데이트하거나, 신뢰할 수 없는 디렉토리에서 Python 실행 금지
🔧 검증 코드
명령어가 버전을 출력하면 취약함. 출력 없으면 안전함. Linux/macOS는 영향 없음.
python --version 2>&1 | grep -E '3\.[0-5]\.[0-9]|3\.5\.0'