# CVE-2026-61539: Xinference: Remote code execution via unsafe `eval()` in Llama3 tool-call parsing

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-08-21T20:37:02.633Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-x2rj-828p-hx9m, PYSEC-2026-3946
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- xorbitsai inference: < 2.7.0
- xinference (PyPI): before 2.7.0

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/xorbitsai/inference/security/advisories/GHSA-x2rj-828p-hx9m> (web)
- <https://github.com/xorbitsai/inference/pull/4786> (web)
- <https://github.com/xorbitsai/inference/commit/1b3d220f342ce68d34cec4586d9409d457dadc42> (web)
- <https://github.com/xorbitsai/inference/releases/tag/v2.7.0> (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)

## Sources

- CVE List: [CVE-2026-61539](https://www.cve.org/CVERecord?id=CVE-2026-61539), CVE Terms of Use, modified 2026-08-24
- GitHub Advisory Database: [GHSA-x2rj-828p-hx9m](https://github.com/advisories/GHSA-x2rj-828p-hx9m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-61539](https://nvd.nist.gov/vuln/detail/CVE-2026-61539), Public domain, modified 2026-10-12
- PyPA Advisory Database: [PYSEC-2026-3946](https://osv.dev/vulnerability/PYSEC-2026-3946), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-61539 · Whole record: https://cve.day/CVE-2026-61539.json · Rebuilt by cve.day 2026-11-25T22:59:34.828Z
