CVE-2026-42271 LiteLLM: Authenticated command execution via MCP stdio test endpoints
LiteLLM: MCP stdio 테스트 엔드포인트를 통한 인증 명령 실행 기계 번역
설명
LiteLLM은 OpenAI (또는 네이티브) 형식으로 LLM API를 호출하는 프록시 서버 (AI 게이트웨이)입니다. 버전 1.74.2부터 버전 1.83.7 이전까지 MCP 서버를 저장하기 전에 미리 보는 데 사용되는 두 개의 엔드포인트(POST /mcp-rest/test/connection 및 POST /mcp-rest/test/tools/list)는 stdio 전송에 사용되는 명령, args 및 env 필드를 포함하여 요청 본문에서 전체 서버 구성을 수락했습니다. stdio 구성으로 호출될 때 엔드포인트는 프록시 프로세스의 권한을 가진 프록시 호스트의 하위 프로세스로 제공된 명령을 생성한 연결을 시도했습니다. 엔드포인트는 역할 검사 없이 유효한 프록시 API 키에 의해서만 게이트되었습니다. 따라서, 낮은-특권 내부-사용자 키들의 홀더들을 포함하는 임의의 인증된 사용자는 호스트에서 임의의 명령을 실행할 수 있다. 이 문제는 버전 1.83.7에서 패치되었습니다.
기계 번역
원문 보기
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.
영향 받는 제품 제품 1개
-
해결 버전 있음
BerriAI
litellm
영향 받는 버전
- 1.74.2 이상 1.83.7 미만
해결 버전
- 1.83.7 이상