🔍 CVE-2026-103663

0.0
CVSS Score
UNKNOWN
2026-10-08
2026-10-08 20:08
✅ 완료

🇰🇷 한글 설명

Ollama의 /api/pull 엔드포인트에서 digestToPath 함수의 검증 미흡으로 인해 경로 탐색(Path Traversal) 취약점이 발생합니다. 인증되지 않은 원격 공격자가 악성 바이너리를 모델 저장소 외부의 시스템 디렉토리에 작성할 수 있으며, 서버 재시작 시 해당 파일이 실행되어 루트 권한으로 원격 코드 실행(RCE)이 가능합니다.

💡 쉬운 설명

해커가 특수하게 조작된 명령을 보내 Ollama 서버의 중요한 시스템 폴더에 악성 파일을 몰래 심을 수 있는 보안 약점입니다. 이 파일이 실행되면 해커가 컴퓨터의 모든 권한을 장악할 수 있어 매우 위험합니다.

🇺🇸 원문 (English)

Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation of layer digests by the `digestToPath` function. An unauthenticated remote attacker can specify a path traversal sequence as a layer digest, causing a malicious binary to be written outside the model store.  Critically if the server process has write access to `/usr/lib/ollama` (the default in most Ollama Docker images), an attacker can write the malicious file to that directory. On the next server restart, the file is loaded and executed, resulting in remote code execution as root. This issue was fixed in version 0.35.0.

📍 영향받는 시스템

Ollama 0.35.0 미만 버전 (특히 Docker 환경에서 위험)

⚔️ 공격 벡터

인증되지 않은 원격 공격자가 /api/pull 엔드포인트에 경로 탐색 시퀀스가 포함된 레이어 다이제스트를 전송

🛡️ 대응 방법

Ollama를 최신 버전인 0.35.0 이상으로 업데이트하십시오.

🔧 검증 코드

명령어 결과에 0.35.0 이상의 버전이 표시되지 않거나 취약한 버전이 출력되면 업데이트가 필요합니다.

Shell / Script
ollama --version 2>/dev/null | grep -E '0\.(3[5-9]|[4-9][0-9])\.'

💻 영향받는 소프트웨어

Docker