🇰🇷 한글 설명
Ollama 0.20.2 이하 버전의 Tensor Model Transfer Handler 구성 요소에서 경로 탐색(Path Traversal) 취약점이 발견되었습니다. digestToPath 함수 내의 digest 인자를 조작하여 시스템 파일에 접근할 수 있으며, 원격에서 높은 복잡도의 공격이 가능합니다.
💡 쉬운 설명
해커가 특수하게 조작된 데이터를 보내 Ollama 프로그램이 허용되지 않은 컴퓨터 내부 파일에 접근하도록 만들 수 있는 결함입니다. 원격에서 공격이 가능하지만 실행하기는 매우 까다로운 편입니다.
🇺🇸 원문 (English)
A security flaw has been discovered in Ollama up to 0.20.2. This affects the function digestToPath of the file x/imagegen/transfer/transfer.go of the component Tensor Model Transfer Handler. The manipulation of the argument digest results in path traversal. The attack may be performed from remote. This attack is characterized by high complexity. The exploitability is reported as difficult. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
📍 영향받는 시스템
Ollama 0.20.2 및 그 이전 버전
⚔️ 공격 벡터
원격에서 조작된 digest 인자를 전송하여 발생하는 경로 탐색 공격
🛡️ 대응 방법
Ollama를 최신 보안 패치가 적용된 버전으로 즉시 업데이트하십시오.
🔧 검증 코드
출력된 버전이 0.20.2 이하인지 확인하여 취약 여부를 판단합니다.
ollama --version 2>/dev/null | grep -E '0\.[0-9]{2}\.[0-9]{2}'