🇰🇷 한글 설명
virtualenv 21.14.9 미만 버전에서 PipInvoke.get_pip_install_cmd() 함수가 특정 옵션 사용 시 보안 검증 과정을 우회하는 취약점이 발견되었습니다. 이로 인해 PyPI의 SHA-256 메타데이터와 비교하지 않고도 인덱스에서 패키지를 선택할 수 있어 무결성 검증이 누락될 수 있습니다. 해당 문제는 21.14.9 버전에서 수정되었습니다.
💡 쉬운 설명
파이썬 가상 환경을 만드는 도구가 설치할 파일이 진짜인지 확인하는 검사 과정을 건너뛰는 문제가 있습니다. 이로 인해 가짜 파일이 설치될 위험이 있으므로 최신 버전으로 업데이트해야 합니다.
🇺🇸 원문 (English)
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInvoke.get_pip_install_cmd() handles --seeder pip --download by calling get_wheel(download=False) and then allowing pip to consult the configured index, bypassing virtualenv's download_wheel() and verify_wheel_digest() path. When virtualenv's default-index PyPI digest comparison remains enabled, an index candidate matching the bundled package and version can therefore be selected without comparison to PyPI SHA-256 metadata. Explicit custom-index settings already opt out of that comparison and remain outside this verification-bypass claim; the demonstrated configuration used a non-PyPI index while leaving the index environment variables unset so the comparison policy remained active. This condition does not independently defeat TLS or establish control of the index response. This issue is fixed in version 21.14.9.
📍 영향받는 시스템
virtualenv versions prior to 21.14.9
⚔️ 공격 벡터
특정 옵션(--seeder pip --download)을 사용하여 패키지 설치 시 무결성 검증을 우회하는 방식
🛡️ 대응 방법
virtualenv를 21.14.9 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 21.14.9보다 낮으면 취약한 상태입니다.
pip show virtualenv | grep Version