Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Ollama Remote Denial of Service via Attacker-Controlled Allocation in GGUF Metadata Parser
Vulnerability Description
Ollama (HEAD f0078ae) contains an uncontrolled memory allocation vulnerability in the GGUF metadata parser that allows remote attackers to crash the server by supplying a crafted GGUF file with attacker-controlled length and count fields in string lengths, tensor dimension counts, and metadata array counts that are used as allocation sizes without validation against remaining file size. Attackers can upload a sub-1KB crafted GGUF file via the blob upload and model create or pull API endpoints to trigger unrecoverable Go runtime out-of-memory fatal errors or makeslice panics that bypass recovery middleware and crash the entire server process.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vulnerability Type
未经控制的内存分配
Vulnerability Title
Ollama 资源管理错误漏洞
Vulnerability Description
Ollama是Ollama公司开源的一个可以在本地设备上运行、管理和自定义大语言模型的工具。 Ollama f0078ae之前版本存在资源管理错误漏洞,该漏洞源于GGUF元数据解析器中存在不受控制的内存分配问题,导致远程攻击者通过上传特制的GGUF文件,其中使用攻击者控制的长度和计数字段(如字符串长度、张量维度计数和元数据数组计数)作为分配大小且未经验证,可引发Go运行时内存耗尽致命错误或makeslice恐慌,绕过恢复中间件并使整个服务器进程崩溃。
CVSS Information
N/A
Vulnerability Type
N/A