🔍 CVE-2026-42203

8.8
CVSS Score
HIGH
2026-05-08
2026-10-26 20:10
✅ 완료

🇰🇷 한글 설명

LiteLLM 프록시의 /prompts/test 엔드포인트가 사용자 제공 프롬프트 템플릿을 샌드박싱 없이 실행하여 임의 코드 실행을 허용합니다. API 키로 인증된 모든 사용자가 프로세스의 환경변수(API 키, DB 자격증명)에 접근하고 호스트에서 명령을 실행할 수 있습니다.

💡 쉬운 설명

LiteLLM의 프롬프트 테스트 기능이 악의적인 코드를 무조건 실행하는 버그가 있습니다. 로그인한 누구나 서버의 모든 비밀을 훔치거나 시스템 명령을 실행할 수 있습니다.

🇺🇸 원문 (English)

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.80.5 to before version 1.83.7, the POST /prompts/test endpoint accepted user-supplied prompt templates and rendered them without sandboxing. A crafted template could run arbitrary code inside the LiteLLM Proxy process. The endpoint only checks that the caller presents a valid proxy API key, so any authenticated user could reach it. Depending on how the proxy is deployed, this could expose secrets in the process environment (such as provider API keys or database credentials) and allow commands to be run on the host. This issue has been patched in version 1.83.7.

📍 영향받는 시스템

LiteLLM 버전 1.80.5 이상 1.83.7 미만

⚔️ 공격 벡터

API 키 인증 후 /prompts/test 엔드포인트에 악의적인 템플릿을 POST 요청으로 전송하여 코드 실행

🛡️ 대응 방법

LiteLLM를 버전 1.83.7 이상으로 즉시 업그레이드

🔧 검증 코드

출력된 버전이 1.83.7 이상이면 안전, 1.80.5~1.83.6 범위면 취약함

Shell / Script
pip show litellm 2>/dev/null | grep Version || python3 -c "import litellm; print(f'Version: {litellm.__version__}')" 2>/dev/null

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

litellm