{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-61539","id":"CVE-2026-61539","title":"Xinference: Remote code execution via unsafe `eval()` in Llama3 tool-call parsing","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/transfor","descriptionLong":"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":"2026-08-21T20:37:02.633Z","updated":"2026-10-28T02:30:41.180858917Z","reserved":"2026-07-10T16:27:03.093Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["xorbitsai inference"],"affectedProducts":[{"vendor":"xorbitsai","product":"inference","defaultStatus":null,"versions":[{"version":"< 2.7.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"xinference","purl":"pkg:pypi/xinference","ranges":["<2.7.0"],"fixed":["2.7.0"],"advisory":"GHSA-x2rj-828p-hx9m"}],"cwes":["CWE-95"],"aliases":["GHSA-x2rj-828p-hx9m","PYSEC-2026-3946"],"references":[{"url":"https://github.com/xorbitsai/inference/security/advisories/GHSA-x2rj-828p-hx9m","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/xorbitsai/inference/pull/4786","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/xorbitsai/inference/commit/1b3d220f342ce68d34cec4586d9409d457dadc42","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/xorbitsai/inference/releases/tag/v2.7.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61539.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61539","tags":["advisory"]},{"url":"https://github.com/xorbitsai/inference","tags":["package"]},{"url":"https://pypi.org/project/xinference","tags":["package"]},{"url":"https://github.com/advisories/GHSA-x2rj-828p-hx9m","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.01226,"epssPercentile":0.69464,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-61539","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61539","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-61539","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-x2rj-828p-hx9m","ok":true,"note":"GHSA-x2rj-828p-hx9m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-61539","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}