CVE-2026-61539
CRITICAL 10.0CVSS 3.1Xinference vulnerable to remote code execution via unsafe `eval()` in Llama3 tool-call parsing
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.
- Published
- 21 Aug 2026
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-95
- Also known as
- GHSA-x2rj-828p-hx9mPYSEC-2026-3946
- Sources
- NVDJSONOSV GHSA-x2rj-828p-hx9mJSONOSV PYSEC-2026-3946JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | xinference | < 2.7.0 | 2.7.0 |
References
- https://github.com/xorbitsai/inference/commit/1b3d220f342ce68d34cec4586d9409d457dadc42 · WEB
- https://github.com/xorbitsai/inference/pull/4786 · WEB
- https://github.com/xorbitsai/inference/releases/tag/v2.7.0 · WEB
- https://github.com/xorbitsai/inference/security/advisories/GHSA-x2rj-828p-hx9m · WEB
- https://github.com/xorbitsai/inference · PACKAGE
- https://pypi.org/project/xinference · PACKAGE
- https://github.com/advisories/GHSA-x2rj-828p-hx9m · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-61539 · ADVISORY
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 21 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Aug 2026)