Back to list

Xinference vulnerable to remote code execution via unsafe `eval()` in Llama3 tool-call parsing — GHSA-X2RJ-828P-HX9M

GitHub · GitHub · GHSA-X2RJ-828P-HX9M

ID
GHSA-X2RJ-828P-HX9M
Date
Source
GitHub
Vendor
GitHub
Threat
critical
CVSS
10

Summary

### Summary 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…

Timeline

Published by source
2026-08-21

Risk context

  • Reported severity or threat level: critical.
  • Reported CVSS score: 10 out of 10.
  • Review exposure for the affected product or family: pip: xinference.

Product

pip: xinference

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Evidence and provenance

Canonical advisory ID
GHSA-X2RJ-828P-HX9M
Source
GitHub
Vendor
GitHub
Published by source
2026-08-21
Last source activity
2026-08-21
Additional identifiers
CVE-2026-61539
Curated by
hlukh.ch

Related advisories and connections

These advisories are connected by shared CVE, product, vendor, source, or time signals.