CVE-2026-61539
Xinference: Remote code execution via unsafe `eval()` in Llama3 tool-call parsing
Also known as GHSA-x2rj-828p-hx9m, PYSEC-2026-3946
Mitigation
- Upgrade xinference to 2.7.0 or later.
Who should check
- Projects that depend on PyPI package xinference (< 2.7.0)
- Anyone running xorbitsai inference < 2.7.0
Vulnerability facts
- Affected
- xinference < 2.7.0
- Fixed in
- 2.7.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.23% chance of exploitation in 30 days (percentile 69, 2026-11-26)
- CWE
- CWE-95
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI xinference | < 2.7.0 | 2.7.0 | osv |
| xorbitsai inference | < 2.7.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-61539. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-61539.md Affected: xinference < 2.7.0 Fixed in: 2.7.0 Steps: 1. Search this machine and project for xinference (PyPI), xorbitsai inference: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-61539 being exploited?
There is no confirmed exploitation: CVE-2026-61539 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.23% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-61539?
Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-61539?
xinference < 2.7.0.
Is there a fix for CVE-2026-61539?
Yes. Fixed in 2.7.0. Upgrade xinference to 2.7.0 or later.
How do I check if I'm affected by CVE-2026-61539?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.