{"cve":"CVE-2026-61539","nvd":{"published":"2026-08-21T21:17:00.867","modified":"2026-10-12T16:10:00.220","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10.0},"cwes":["CWE-95"],"references":["https://github.com/xorbitsai/inference/commit/1b3d220f342ce68d34cec4586d9409d457dadc42","https://github.com/xorbitsai/inference/pull/4786","https://github.com/xorbitsai/inference/releases/tag/v2.7.0","https://github.com/xorbitsai/inference/security/advisories/GHSA-x2rj-828p-hx9m"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:49:38.260478770+00:00"},"epss":{"cve":"CVE-2026-61539","score":0.01226,"percentile":0.6862,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-x2rj-828p-hx9m","url":"https://osv.dev/vulnerability/GHSA-x2rj-828p-hx9m","summary":"Xinference vulnerable to remote code execution via unsafe `eval()` in Llama3 tool-call parsing","modified":"2026-09-10T12:25:27.471125692Z","packages":[{"ecosystem":"PyPI","name":"xinference","purl":"pkg:pypi/xinference","ranges":["<2.7.0"],"fixed":["2.7.0"]}]},{"id":"PYSEC-2026-3946","url":"https://osv.dev/vulnerability/PYSEC-2026-3946","summary":"Xinference vulnerable to remote code execution via unsafe `eval()` in Llama3 tool-call parsing","modified":"2026-09-10T12:15:15.622746554Z","packages":[{"ecosystem":"PyPI","name":"xinference","purl":"pkg:pypi/xinference","ranges":["<2.7.0"],"fixed":["2.7.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}