Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. xinference
  4. ›
  5. CVE-2026-61539

CVE-2026-61539: Xinference vulnerable to remote code execution via unsafe `eval()` in Llama3 tool-call parsing

August 21, 2026 (updated October 8, 2026)

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 →

Affected versions

All versions before 2.7.0

Fixed versions

  • 2.7.0

Solution

Upgrade to version 2.7.0 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

pypi/xinference/CVE-2026-61539.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:54 +0000.