製品・ソフトウェアに関する情報
Ollamaにおけるパストラバーサルの脆弱性
Title Ollamaにおけるパストラバーサルの脆弱性
Summary

Ollamaのバージョン0.20.2までにセキュリティ上の欠陥が発見されました。この欠陥は、Tensor Model Transfer Handlerコンポーネントのファイルx/imagegen/transfer/transfer.go内のdigestToPath関数に影響を与えます。引数digestの操作により、パストラバーサルが発生します。この攻撃はリモートから実行可能です。攻撃は高い複雑性を持ち、悪用の難易度は困難と報告されています。脆弱性の悪用コードは公開されており、攻撃に使用される可能性があります。ベンダーには早期にこの情報が連絡されましたが、対応は行われていません。

Possible impacts 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアの一部が停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 26, 2026, midnight
Registration Date May 7, 2026, 12:02 p.m.
Last Update May 7, 2026, 12:02 p.m.
CVSS3.0 : 警告
Score 5.6
Vector CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
CVSS2.0 : 警告
Score 5.1
Vector AV:N/AC:H/Au:N/C:P/I:P/A:P
Affected System
Ollama
Ollama 0.20.0 から 0.20.2
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月07日]
  掲載
May 7, 2026, 12:02 p.m.

NVD Vulnerability Information
CVE-2026-7020
Summary

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.

Publication Date April 26, 2026, 2:16 p.m.
Registration Date April 27, 2026, 12:34 p.m.
Last Update May 2, 2026, 5:24 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:* 0.20.0 0.20.2
Related information, measures and tools
Common Vulnerabilities List