🔍 CVE-2026-44471

7.8
CVSS Score
HIGH
2026-05-13
2026-10-26 14:10
✅ 완료

🇰🇷 한글 설명

gitoxide 0.21.1 이전 버전에서 악의적으로 구성된 git 트리를 체크아웃할 때, 경로 캐싱 로직의 보안 검사 우회로 인해 공격자가 제어하는 심볼릭 링크를 사용자 쓰기 권한 범위 내 임의의 디렉토리에 작성 가능합니다. 부모 디렉토리의 심볼릭 링크를 따라가는 std::os::unix::fs::symlink() 함수의 특성이 악용됩니다.

💡 쉬운 설명

git 파일 관리 프로그램의 이전 버전에서 악의적인 파일 목록을 받으면, 공격자가 컴퓨터의 중요한 폴더에 몰래 링크 파일을 만들 수 있습니다. 이는 파일 확인 과정에서 일부 안전 장치가 제대로 작동하지 않아서 발생합니다.

🇺🇸 원문 (English)

gitoxide is an implementation of git written in Rust. Prior to 0.21.1, a malicious tree can be constructed that will, when checked out with gitoxide, permit writing an attacker-controlled symlink into any existing directory the user has write access to. During checkout, all symlink index entries are deferred and created after regular files using a single shared gix_worktree::Stack. Internally, this uses a gix_fs::Stack. gix_fs::Stack::make_relative_path_current() caches validated path prefixes: when the previously-processed leaf component exactly matches the leading component(s) of the next path, the leaf-to-directory transition at gix-fs/src/stack.rs invokes only delegate.push_directory(), never delegate.push(). In gix_worktree::stack::delegate::StackDelegate, when the state member is State::CreateDirectoryAndAttributesStack, Attributes::push_directory() only loads attributes (from the ODB, in the clone case), and does not perform any other checks. The on-disk symlink_metadata() check and unlink-on-collision live in StackDelegate::push()'s invocation of create_leading_directory(), which is therefore bypassed for the cached prefix. The final symlink is created with plain std::os::unix::fs::symlink, which follows symlinks in parent directories. Therefore, it's possible to provide a tree with duplicate symlink and directory entries that exploits this. This vulnerability is fixed in 0.21.1.

📍 영향받는 시스템

gitoxide < 0.21.1 (모든 플랫폼, Unix/Linux 환경에서 활성)

⚔️ 공격 벡터

악의적으로 구성된 git 저장소를 clone/checkout할 때 중복된 심볼릭 링크 및 디렉토리 엔트리를 포함한 트리 제공

🛡️ 대응 방법

gitoxide를 0.21.1 이상으로 업그레이드

🔧 검증 코드

SAFE가 출력되면 보안 패치 적용됨, VULNERABLE이 출력되면 긴급 업그레이드 필요

Shell / Script
gix --version | grep -oP '(?<=gix ).*' | awk '{if ($1 >= "0.21.1") print "SAFE"; else print "VULNERABLE"}'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Git