{"id":"CVE-2026-76841","sourceIdentifier":"disclosure@vulncheck.com","published":"2026-08-24T14:17:01.760","lastModified":"2026-10-12T15:10:00.207","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"Xinference carga modelos con la ejecución remota de código de Hugging Face habilitada incondicionalmente, y antes de la versión 2.12.0 no expone ninguna configuración para deshabilitarla. Seis sitios de llamada del cargador pasan trust_remote_code=True como un literal o como un valor predeterminado incondicional: RerankModel._get_tokenizer en xinference/model/rerank/core.py, SentenceTransformerRerankModel.load en xinference/model/rerank/sentence_transformers/core.py, SentenceTransformerEmbeddingModel.load en xinference/model/embedding/sentence_transformers/core.py, FlagEmbeddingModel.load en xinference/model/embedding/flag/core.py, y dos sitios en xinference/model/llm/transformers/core.py donde PytorchModel._sanitize_model_config y PytorchModel._get_components establecen el valor predeterminado en True. Debido a que un llamador con acceso al lanzamiento de modelos puede registrar un modelo cuyo tipo es desconocido y proporcionar una ruta de modelo arbitraria, el servidor alcanza _auto_detect_type y luego AutoTokenizer.from_pretrained, que importa y ejecuta Python declarado por el auto_map de tokenizer_config.json del propio directorio del modelo, ejecutando código suministrado por el atacante con los privilegios del proceso de trabajo. La versión 2.12.0 protege cada sitio detrás de allow_trust_remote_code y la configuración XINFERENCE_TRUST_REMOTE_CODE, permitiendo código remoto solo para modelos integrados empaquetados."}],"affected":[{"source":"disclosure@vulncheck.com","affectedData":[{"vendor":"xorbitsai","product":"inference","defaultStatus":"unaffected","collectionURL":"https://pypi.org/project/xinference/","packageName":"xinference","packageURL":"pkg:pypi/xinference","versions":[{"version":"0","lessThan":"2.12.0","versionType":"semver","status":"affected"}]}]}],"metrics":{"cvssMetricV40":[{"source":"disclosure@vulncheck.com","type":"Secondary","cvssData":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":8.7,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"cvssMetricV31":[{"source":"disclosure@vulncheck.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-08-26T15:56:50.906437Z","id":"CVE-2026-76841","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"disclosure@vulncheck.com","type":"Secondary","description":[{"lang":"en","value":"CWE-94"}]}],"references":[{"url":"https://github.com/xorbitsai/inference","source":"disclosure@vulncheck.com"},{"url":"https://github.com/xorbitsai/inference/blob/v2.11.0/xinference/model/rerank/core.py","source":"disclosure@vulncheck.com"},{"url":"https://github.com/xorbitsai/inference/issues/5023","source":"disclosure@vulncheck.com"},{"url":"https://github.com/xorbitsai/inference/pull/5027","source":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/xinference-through-remote-code-execution-via-hardcoded-trust-remote-code-in-model-loaders","source":"disclosure@vulncheck.com"}]}