CVE-2026-61539: Xinference vulnerable to remote code execution via unsafe `eval()` in Llama3 tool-call parsing
(updated )
Xinference used Python’s unsafe eval() function when parsing Llama3 tool-call output generated by a large language model. Because the model output can be influenced by attacker-controlled prompts sent to the chat completion API, a remote attacker can craft prompts that cause the model to return a Python expression. Xinference then evaluates that expression on the server while post-processing the tool-call result. In the tested default deployment, authentication was not enabled, so the vulnerability was exploitable by an unauthenticated remote attacker through the /v1/chat/completions endpoint.
References
- github.com/advisories/GHSA-x2rj-828p-hx9m
- github.com/xorbitsai/inference/commit/1b3d220f342ce68d34cec4586d9409d457dadc42
- github.com/xorbitsai/inference/pull/4786
- github.com/xorbitsai/inference/releases/tag/v2.7.0
- github.com/xorbitsai/inference/security/advisories/GHSA-x2rj-828p-hx9m
- nvd.nist.gov/vuln/detail/CVE-2026-61539
Code Behaviors & Features
Detect and mitigate CVE-2026-61539 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →