目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-42249— Ollama 路径遍历漏洞

一分钟漏洞结论

影响对象
Ollama Ollama
利用判断
存在公开或 AI PoC,应优先验证
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Ollama是Ollama开源的一个可以在本地设备上运行、管理和自定义大语言模型的工具。 Ollama 0.12.10版本至0.17.5版本存在路径遍历漏洞,该漏洞源于更新机制中处理攻击者控制的HTTP响应标头不当,应用程序使用从HTTP标头派生的值构造本地文件路径而未验证,这些值直接传递给filepath.Join,允许路径遍历序列被解析,可能导致文件写入预期更新暂存目录之外的位置,攻击者可利用此漏洞将任意可执行文件写入攻击者选择的位置,包括Windows启动目录,导致执行任意可执行文件。

AI 预测 9.0 利用难度: 较易 EPSS 0.99% · P61

公开利用映射 1

影响版本矩阵 1

厂商产品 版本范围状态
Ollama Ollama 0.12.10≤ 0.17.5 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-42249 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Remote Code Execution in Ollama via Update Mechanism
来源: CVE Program / CVE List V5
Vulnerability Description
Ollama for Windows contains a Remote Code Execution vulnerability in its update mechanism due to improper handling of attacker‑controlled HTTP response headers. When downloading updates, the application constructs local file paths using values derived from HTTP headers without validation. These values are passed directly to filepath.Join, allowing path traversal sequences (../) to be resolved and enabling files to be written outside the intended update staging directory. An attacker who can influence update responses can exploit this flaw to write arbitrary executables to attacker‑chosen locations accessible to the current user, including the Windows Startup directory. This allows execution of arbitrary executables. Critically, when chained with CVE‑2026‑42248 (Missing Signature Verification for Updates), an attacker can deliver malicious payloads that are written to sensitive locations and executed automatically. Because Ollama for Windows performs silent automatic updates and executes staged binaries without user interaction, this results in automatic and persistent code execution without user awareness. Maintainers of this project were notified early about this vulnerability, but didn't respond with the details of vulnerability or vulnerable version range. Versions from 0.12.10 to 0.17.5 were tested and confirmed as vulnerable, other versions were not tested but might also be vulnerable.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L
来源: CVE Program / CVE List V5
Vulnerability Type
下载代码缺少完整性检查
来源: CVE Program / CVE List V5
Vulnerability Title
Ollama 路径遍历漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Ollama是Ollama开源的一个可以在本地设备上运行、管理和自定义大语言模型的工具。 Ollama 0.12.10版本至0.17.5版本存在路径遍历漏洞,该漏洞源于更新机制中处理攻击者控制的HTTP响应标头不当,应用程序使用从HTTP标头派生的值构造本地文件路径而未验证,这些值直接传递给filepath.Join,允许路径遍历序列被解析,可能导致文件写入预期更新暂存目录之外的位置,攻击者可利用此漏洞将任意可执行文件写入攻击者选择的位置,包括Windows启动目录,导致执行任意可执行文件。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Ollama Ollama 0.12.10 ~ 0.17.5 -

二、漏洞 CVE-2026-42249 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级
default-local-qwen3.6 · 8198 chars
Pro+ 专属包含:
漏洞复现靶场录像(真实沙箱构建 + 触发,独家)
漏洞原理深度分析
触发条件与影响面
完整可执行 POC 代码
利用链与缓解建议
POC 打包下载
每月 100+ 条 AI 生成额度

三、漏洞 CVE-2026-42249 的情报信息

请登录查看更多情报信息。

CVE-2026-42249 安全博客文章 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-42249

暂无评论


发表评论