原文の説明
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.34.2 < 0.35.0 修正バージョン: 0.35.0 リポジトリ・パッケージ一致
詳細
- 公開日
- 2026-10-08
- 最終更新
- 2026-10-08
- CVSS ベクター
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N- CWE
- CWE-23, CWE-913
- EPSS(30日以内の悪用確率)
- 0.71% (パーセンタイル 54)
参考資料
本製品は NVD API のデータを使用していますが、NVD による承認または認定を受けたものではありません。CVE® は The MITRE Corporation の登録商標です。CVE レコードは CVE Program の利用規約に基づいて使用しています。