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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-42271— LiteLLM 命令注入漏洞

一分钟漏洞结论

影响对象
BerriAI litellm
利用判断
已确认在野利用,应立即处置
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

LiteLLM是Berri AI开源的一个应用程序。可以使用 OpenAI 格式调用所有 LLM API。 LiteLLM 1.74.2版本至1.83.7之前版本存在命令注入漏洞,该漏洞源于两个用于预览MCP服务器的端点接受请求体中的完整服务器配置,包括stdio传输使用的命令、参数和环境字段,当使用stdio配置调用时端点尝试连接并生成子进程,端点仅由有效代理API密钥保护而无角色检查,任何认证用户均可运行任意命令。

AI 预测 8.1 利用难度: 较易 KEV EPSS 92.57% · P100

影响版本矩阵 1

厂商产品 版本范围状态
BerriAI litellm >= 1.74.2, < 1.83.7 affected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
LiteLLM: Authenticated command execution via MCP stdio test endpoints
来源: CVE Program / CVE List V5
Vulnerability Description
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.74.2 to before version 1.83.7, two endpoints used to preview an MCP server before saving it — POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list — accepted a full server configuration in the request body, including the command, args, and env fields used by the stdio transport. When called with a stdio configuration, the endpoints attempted to connect, which spawned the supplied command as a subprocess on the proxy host with the privileges of the proxy process. The endpoints were gated only by a valid proxy API key, with no role check. Any authenticated user — including holders of low-privilege internal-user keys — could therefore run arbitrary commands on the host. This issue has been patched in version 1.83.7.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
在命令中使用的特殊元素转义处理不恰当(命令注入)
来源: CVE Program / CVE List V5
Vulnerability Title
LiteLLM 命令注入漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
LiteLLM是Berri AI开源的一个应用程序。可以使用 OpenAI 格式调用所有 LLM API。 LiteLLM 1.74.2版本至1.83.7之前版本存在命令注入漏洞,该漏洞源于两个用于预览MCP服务器的端点接受请求体中的完整服务器配置,包括stdio传输使用的命令、参数和环境字段,当使用stdio配置调用时端点尝试连接并生成子进程,端点仅由有效代理API密钥保护而无角色检查,任何认证用户均可运行任意命令。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
BerriAI litellm >= 1.74.2, < 1.83.7 -

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

# POC 描述 源链接 神龙链接
1 A critical unauthenticated remote code execution vulnerability exists in LiteLLM due to improper input handling in the MCP stdio test endpoint. An attacker can send a specially crafted request to the `/mcp-rest/test/connection` endpoint with controlled parameters, resulting in arbitrary command execution on the server. When combined with an authentication bypass technique—such as the Starlette BadHost flaw (CVE-2026-48710)—an unauthenticated attacker can exploit the chain to execute commands as the server process. Exploitation allows an attacker to spawn processes with the privileges of the LiteLLM server, potentially leading to complete compromise of the host. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42271.yaml POC详情
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2026-42271 厂商安全公告 (1)

CVE-2026-42271 厂商页面 (1)

同批安全公告 · BerriAI · 2026-05-08 · 共 3 条

CVE-2026-42203 LiteLLM 安全漏洞
CVE-2026-42208 LiteLLM SQL注入漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2026-42271

暂无评论


发表评论