🇰🇷 한글 설명
Rattler 라이브러리 0.43.2 미만 버전에서 EntryPoint::FromStr 함수가 명령 필드에 대해 .trim() 작업만 수행하여 경로 조작 취약점이 발생합니다. 악의적인 noarch:python 패키지가 경로 탐색 문자(.., /, \)를 포함한 entry-point 이름을 사용하면 설치 경로 외부의 파일을 생성하거나 기존 실행 파일을 덮어쓸 수 있습니다.
💡 쉬운 설명
악성 패키지를 설치할 때, 프로그램이 정해진 폴더가 아닌 컴퓨터의 다른 중요한 위치에 파일을 마음대로 만들거나 기존 파일을 망가뜨릴 수 있는 보안 약점입니다. 이를 통해 해커가 사용자의 컴퓨터 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
Rattler is a library that provides common functionality used within the conda ecosystem. Prior to version 0.43.2, `EntryPoint::FromStr` in `rattler_conda_types` performs only `.trim()` on the `command` field before the linker joins it onto the install prefix and writes an executable Python script. A malicious `noarch:python` package can ship an `info/link.json` with an entry-point name containing `..`, `/`, `\`, or an absolute path; the resulting file is written outside the prefix (or clobbers an existing in-prefix entry-point such as `bin/pip`) with mode `0o775` on Unix and a copied launcher `.exe` on Windows. This affects the default install path of `pixi install`, `mamba install` via py-rattler, `rattler-build`, and any other consumer of the `rattler` install crate; no flag or post-link-script opt-in is involved. Version 0.43.2 contains a fix for the issue.
📍 영향받는 시스템
Rattler 라이브러리 0.43.2 미만 버전 (pixi, mamba, rattler-build 등 포함)
⚔️ 공격 벡터
경로 탐색 문자(.., /, \)가 포함된 악성 noarch:python 패키지 설치를 통한 임의 파일 쓰기
🛡️ 대응 방법
Rattler 라이브러리를 0.43.2 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.43.2 미만이면 취약한 상태이며, 0.43.2 이상이면 안전합니다.
cargo pkgid rattler-conda-types 2>/dev/null | grep -oE 'rattler-conda-types@([0-9.]+)'