| Title | Ollamaにおける境界外読み取りに関する脆弱性 |
|---|---|
| Summary | Ollamaのバージョン0.17.1以前には、GGUFモデルローダーにヒープの境界外読み取りの脆弱性があります。/api/createエンドポイントは、宣言されたテンソルのオフセットとサイズがファイルの実際の長さを超える攻撃者提供のGGUFファイルを受け入れます。この際、fs/ggml/gguf.goおよびserver/quantization.goのWriteTo()内で量子化処理中に、サーバーが割り当てられたヒープバッファの範囲外を読み取ります。漏洩したメモリ内容には環境変数、APIキー、システムプロンプト、および同時に接続しているユーザーの会話データが含まれる可能性があり、攻撃者は/api/pushエンドポイントを通じて管理するレジストリに結果として得られたモデルアーティファクトをアップロードすることで情報を外部に持ち出す恐れがあります。/api/createおよび/api/pushエンドポイントには認証がありません。デフォルトの展開では127.0.0.1にバインドされていますが、ドキュメント化されたOLLAMA_HOST=0.0.0.0設定は実際には広く使用されており(大規模なパブリックインターネットへの曝露が確認されています)。 |
| Possible impacts | 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution | リリース情報、またはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。 |
| Publication Date | May 4, 2026, midnight |
| Registration Date | May 12, 2026, 10:19 a.m. |
| Last Update | May 12, 2026, 10:19 a.m. |
| CVSS3.0 : 緊急 | |
| Score | 9.1 |
|---|---|
| Vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| Ollama |
| Ollama 0.17.1 未満 |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年05月12日] 掲載 |
May 12, 2026, 10:19 a.m. |
| Summary | Ollama before 0.17.1 contains a heap out-of-bounds read vulnerability in the GGUF model loader. The /api/create endpoint accepts an attacker-supplied GGUF file in which the declared tensor offset and size exceed the file's actual length; during quantization in fs/ggml/gguf.go and server/quantization.go (WriteTo()), the server reads past the allocated heap buffer. The leaked memory contents may include environment variables, API keys, system prompts, and concurrent users' conversation data, and can be exfiltrated by uploading the resulting model artifact through the /api/push endpoint to an attacker-controlled registry. The /api/create and /api/push endpoints have no authentication in the upstream distribution. Default deployments bind to 127.0.0.1, but the documented OLLAMA_HOST=0.0.0.0 configuration is widely used in practice (large public-internet exposure observed). |
|---|---|
| Publication Date | May 4, 2026, 10:16 p.m. |
| Registration Date | May 5, 2026, 4:06 a.m. |
| Last Update | May 11, 2026, 9:27 p.m. |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:* | 0.17.1 | ||||