🇰🇷 한글 설명
Portage 2.1.4.5 이전 버전에서 Python 검색 경로에 현재 작업 디렉토리를 포함하는 취약점으로, 지역 사용자가 수정된 Python 모듈을 로드하여 임의 코드를 실행할 수 있습니다. ys-apps/portage, net-mail/fetchmail, app-editors/leo 등 여러 ebuilds가 영향을 받습니다.
💡 쉬운 설명
Linux 패키지 설치 도구가 현재 폴더에서 파이썬 프로그램을 먼저 찾도록 설정되어 있어, 악의적인 사람이 같은 폴더에 가짜 파이썬 프로그램을 놓으면 그것을 실행할 수 있습니다. 이를 통해 컴퓨터 전체를 제어하는 악의적인 명령어를 실행할 수 있습니다.
🇺🇸 원문 (English)
Multiple untrusted search path vulnerabilities in Portage before 2.1.4.5 include the current working directory in the Python search path, which allows local users to execute arbitrary code via a modified Python module that is loaded by the (1) ys-apps/portage, (2) net-mail/fetchmail, (3) app-editors/leo ebuilds, and other ebuilds.
📍 영향받는 시스템
Gentoo Linux Portage 2.1.4.4 이전 버전 및 ys-apps/portage, net-mail/fetchmail, app-editors/leo 등 관련 ebuilds
⚔️ 공격 벡터
지역 사용자가 작업 디렉토리나 영향받는 ebuilds 실행 경로에 악의적인 Python 모듈을 배치하여 Portage 실행 시 로드되도록 유도
🛡️ 대응 방법
Portage를 2.1.4.5 이상으로 업그레이드하거나 Python 검색 경로에서 현재 디렉토리 제거 및 신뢰할 수 없는 디렉토리에서 도구 실행 금지
🔧 검증 코드
출력된 Portage 버전이 2.1.4.5 이상이면 안전, 2.1.4.4 이하이면 취약점 존재
emerge --version 2>/dev/null | grep -i portage