漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API
Vulnerability Description
h2oGPT through 0.2.1 contains a path traversal vulnerability in the OpenAI-compatible files API that allows unauthenticated remote attackers to read, write, and delete arbitrary files accessible to the server process by supplying traversal sequences in the bearer token. The get_user_dir function in openai_server/backend_utils.py uses the bearer token string unsanitized as a path component via os.path.join, and because the default API key is EMPTY authentication is bypassed, enabling attackers to traverse outside the intended user directory through the file content, delete, and upload endpoints to achieve remote code execution by writing to startup hooks or application-loaded files.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
H2O.ai h2oGPT 路径遍历漏洞
Vulnerability Description
H2O.ai h2oGPT是H2O.ai公司开源的一款基于大语言模型的对话式AI工具。 H2O.ai h2oGPT 0.2.1及之前版本存在路径遍历漏洞,该漏洞源于OpenAI兼容文件API中的路径遍历问题,get_user_dir函数在openai_server/backend_utils.py中未对bearer token进行清理,并且默认API密钥为空导致身份验证被绕过,可能允许未经身份验证的远程攻击者通过提供遍历序列读取、写入和删除任意文件,并通过写入启动钩子或应用程序加载文件实现远程代码执行。
CVSS Information
N/A
Vulnerability Type
N/A