🔍 CVE-2026-61539

10.0
CVSS Score
CRITICAL
2026-08-21
2026-10-12 16:10
✅ 완료

🇰🇷 한글 설명

Xinference 2.5.0 및 이전 버전에서 Llama3 도구 호출 출력이 eval() 함수로 전달되어 발생하는 원격 코드 실행 취약점입니다. 인증되지 않은 공격자가 조작된 프롬프트를 통해 서버 프로세스 권한으로 임의의 명령을 실행할 수 있습니다.

💡 쉬운 설명

AI 모델이 도구를 사용하는 과정에서 생성된 코드를 검증 없이 그대로 실행하여 발생하는 보안 문제입니다. 해커가 특수한 질문을 던지는 것만으로도 서버를 마음대로 조종할 수 있습니다.

🇺🇸 원문 (English)

Xinference is an inference API for running open-source, speech, and multimodal models. In 2.5.0 and earlier, Xinference passes attacker-influenced Llama3 tool-call output to eval() in xinference/model/llm/tool_parsers/llama3_tool_parser.py and xinference/model/llm/utils.py. Requests to /v1/chat/completions with a tools field flow through xinference/api/restful_api.py, xinference/model/llm/transformers/core.py, handle_chat_result_non_streaming(), and _post_process_completion() before extract_tool_calls() or _eval_llama3_chat_arguments() evaluates the model-generated Python expression. An unauthenticated remote attacker can influence that output through a crafted prompt and execute commands in the Xinference server process context. This issue is fixed in version 2.7.0.

📍 영향받는 시스템

Xinference 2.5.0 및 그 이전 모든 버전

⚔️ 공격 벡터

인증되지 않은 원격 공격자가 조작된 프롬프트를 /v1/chat/completions API로 전송

🛡️ 대응 방법

Xinference를 최신 보안 패치가 적용된 2.7.0 버전 이상으로 업데이트

🔧 검증 코드

출력된 버전이 2.7.0 미만인 경우 해당 취약점에 노출된 상태입니다.

Shell / Script
pip show xinference | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python