🔍 CVE-2026-76841

8.8
CVSS Score
HIGH
2026-08-24
2026-10-12 15:10
✅ 완료

🇰🇷 한글 설명

Xinference 2.12.0 미만 버전은 Hugging Face 모델 로드 시 원격 코드 실행(RCE) 옵션이 무조건 활성화되어 있습니다. 공격자가 악성 코드가 포함된 모델 경로를 제공할 경우, 서버 권한으로 임의의 파이썬 코드가 실행될 수 있는 취약점입니다.

💡 쉬운 설명

신뢰할 수 없는 외부 모델을 불러올 때, 모델 안에 숨겨진 악성 프로그램이 자동으로 실행될 수 있는 보안 허점이 있습니다. 이를 통해 해커가 서버를 마음대로 조종할 수 있습니다.

🇺🇸 원문 (English)

Xinference loads models with Hugging Face remote code execution unconditionally enabled, and before version 2.12.0 exposes no setting to disable it. Six loader call sites pass trust_remote_code=True as a literal or as an unconditional default: RerankModel._get_tokenizer in xinference/model/rerank/core.py, SentenceTransformerRerankModel.load in xinference/model/rerank/sentence_transformers/core.py, SentenceTransformerEmbeddingModel.load in xinference/model/embedding/sentence_transformers/core.py, FlagEmbeddingModel.load in xinference/model/embedding/flag/core.py, and two sites in xinference/model/llm/transformers/core.py where PytorchModel._sanitize_model_config and PytorchModel._get_components default the value to True. Because a caller with model launch access can register a model whose type is unknown and supply an arbitrary model path, the server reaches _auto_detect_type and then AutoTokenizer.from_pretrained, which imports and executes Python declared by the model directory's own tokenizer_config.json auto_map, running attacker-supplied code with the privileges of the worker process. Version 2.12.0 gates every site behind allow_trust_remote_code and the XINFERENCE_TRUST_REMOTE_CODE setting, permitting remote code only for bundled built-in models.

📍 영향받는 시스템

Xinference versions prior to 2.12.0

⚔️ 공격 벡터

모델 실행 권한을 가진 사용자가 악성 코드가 포함된 임의의 모델 경로를 등록하여 공격

🛡️ 대응 방법

Xinference를 2.12.0 이상의 최신 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 2.12.0 미만이면 취약한 상태입니다.

Shell / Script
pip show xinference | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python