CNVD-2026-20166
Vulnerability from cnvd - Published: 2026-05-04
VLAI Severity ?
Title
Ollama GGUF模型加载器堆越界读取漏洞
Description
Ollama是一个开源的大语言模型部署与推理工具,主要提供模型的加载、量化及API接口服务。
Ollama GGUF模型加载器存在堆越界读取漏洞,该漏洞源于/api/create接口在处理攻击者提供的GGUF文件时,未能正确验证声明的张量偏移和大小是否超过文件实际长度,导致服务器读取已分配堆缓冲区之外的数据所致。攻击者可利用该漏洞泄露环境变量、API密钥等敏感内存数据。
Severity
低
Patch Name
Ollama GGUF模型加载器堆越界读取漏洞的补丁
Patch Description
Ollama是一个开源的大语言模型部署与推理工具,主要提供模型的加载、量化及API接口服务。
Ollama GGUF模型加载器存在堆越界读取漏洞,该漏洞源于/api/create接口在处理攻击者提供的GGUF文件时,未能正确验证声明的张量偏移和大小是否超过文件实际长度,导致服务器读取已分配堆缓冲区之外的数据所致。攻击者可利用该漏洞泄露环境变量、API密钥等敏感内存数据。目前,供应商发布了安全公告及相关补丁信息,修复了此漏洞。
Formal description
厂商已发布了漏洞修复程序,请及时关注更新: https://github.com/ollama/ollama/pull/14406
Reference
https://github.com/ollama/ollama/pull/14406
Impacted products
| Name | Ollama Ollama <0.17.1 |
|---|
{
"cves": {
"cve": {
"cveNumber": "CVE-2026-7482",
"cveUrl": "https://nvd.nist.gov/vuln/detail/CVE-2026-7482"
}
},
"description": "Ollama\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5927\u8bed\u8a00\u6a21\u578b\u90e8\u7f72\u4e0e\u63a8\u7406\u5de5\u5177\uff0c\u4e3b\u8981\u63d0\u4f9b\u6a21\u578b\u7684\u52a0\u8f7d\u3001\u91cf\u5316\u53caAPI\u63a5\u53e3\u670d\u52a1\u3002\n\nOllama GGUF\u6a21\u578b\u52a0\u8f7d\u5668\u5b58\u5728\u5806\u8d8a\u754c\u8bfb\u53d6\u6f0f\u6d1e\uff0c\u8be5\u6f0f\u6d1e\u6e90\u4e8e/api/create\u63a5\u53e3\u5728\u5904\u7406\u653b\u51fb\u8005\u63d0\u4f9b\u7684GGUF\u6587\u4ef6\u65f6\uff0c\u672a\u80fd\u6b63\u786e\u9a8c\u8bc1\u58f0\u660e\u7684\u5f20\u91cf\u504f\u79fb\u548c\u5927\u5c0f\u662f\u5426\u8d85\u8fc7\u6587\u4ef6\u5b9e\u9645\u957f\u5ea6\uff0c\u5bfc\u81f4\u670d\u52a1\u5668\u8bfb\u53d6\u5df2\u5206\u914d\u5806\u7f13\u51b2\u533a\u4e4b\u5916\u7684\u6570\u636e\u6240\u81f4\u3002\u653b\u51fb\u8005\u53ef\u5229\u7528\u8be5\u6f0f\u6d1e\u6cc4\u9732\u73af\u5883\u53d8\u91cf\u3001API\u5bc6\u94a5\u7b49\u654f\u611f\u5185\u5b58\u6570\u636e\u3002",
"formalWay": "\u5382\u5546\u5df2\u53d1\u5e03\u4e86\u6f0f\u6d1e\u4fee\u590d\u7a0b\u5e8f\uff0c\u8bf7\u53ca\u65f6\u5173\u6ce8\u66f4\u65b0\uff1a\r\nhttps://github.com/ollama/ollama/pull/14406",
"isEvent": "\u901a\u7528\u8f6f\u786c\u4ef6\u6f0f\u6d1e",
"number": "CNVD-2026-20166",
"openTime": "2026-05-04",
"patchDescription": "Ollama\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5927\u8bed\u8a00\u6a21\u578b\u90e8\u7f72\u4e0e\u63a8\u7406\u5de5\u5177\uff0c\u4e3b\u8981\u63d0\u4f9b\u6a21\u578b\u7684\u52a0\u8f7d\u3001\u91cf\u5316\u53caAPI\u63a5\u53e3\u670d\u52a1\u3002\r\n\r\nOllama GGUF\u6a21\u578b\u52a0\u8f7d\u5668\u5b58\u5728\u5806\u8d8a\u754c\u8bfb\u53d6\u6f0f\u6d1e\uff0c\u8be5\u6f0f\u6d1e\u6e90\u4e8e/api/create\u63a5\u53e3\u5728\u5904\u7406\u653b\u51fb\u8005\u63d0\u4f9b\u7684GGUF\u6587\u4ef6\u65f6\uff0c\u672a\u80fd\u6b63\u786e\u9a8c\u8bc1\u58f0\u660e\u7684\u5f20\u91cf\u504f\u79fb\u548c\u5927\u5c0f\u662f\u5426\u8d85\u8fc7\u6587\u4ef6\u5b9e\u9645\u957f\u5ea6\uff0c\u5bfc\u81f4\u670d\u52a1\u5668\u8bfb\u53d6\u5df2\u5206\u914d\u5806\u7f13\u51b2\u533a\u4e4b\u5916\u7684\u6570\u636e\u6240\u81f4\u3002\u653b\u51fb\u8005\u53ef\u5229\u7528\u8be5\u6f0f\u6d1e\u6cc4\u9732\u73af\u5883\u53d8\u91cf\u3001API\u5bc6\u94a5\u7b49\u654f\u611f\u5185\u5b58\u6570\u636e\u3002\u76ee\u524d\uff0c\u4f9b\u5e94\u5546\u53d1\u5e03\u4e86\u5b89\u5168\u516c\u544a\u53ca\u76f8\u5173\u8865\u4e01\u4fe1\u606f\uff0c\u4fee\u590d\u4e86\u6b64\u6f0f\u6d1e\u3002",
"patchName": "Ollama GGUF\u6a21\u578b\u52a0\u8f7d\u5668\u5806\u8d8a\u754c\u8bfb\u53d6\u6f0f\u6d1e\u7684\u8865\u4e01",
"products": {
"product": "Ollama Ollama \u003c0.17.1"
},
"referenceLink": "https://github.com/ollama/ollama/pull/14406",
"serverity": "\u4f4e",
"submitTime": "2026-05-06",
"title": "Ollama GGUF\u6a21\u578b\u52a0\u8f7d\u5668\u5806\u8d8a\u754c\u8bfb\u53d6\u6f0f\u6d1e"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…