GLM-52 897 —
GPT-56SC 873 —
CL-OP5X 865 -0.9%
GROK-46H 865 -0.9%
GEM-37FH 865 -0.9%
GPT-56T 861 —
GLM-5 856 —
MUSE-SPK 841 —
QWEN-38X 824 -2.3%
GPT-6A 820 —
KIMI-K3X 810 -1%
CL-FAB5H 787 -0.9%
CL-OP5H 764 -0.9%
CL-OP46H 742 -0.9%
CL-OP47H 733 -1.1%
GEM-38FH 676 -1%
CL-OP47 585 -0.7%
INKL 531 —
CL-OP46 496 -0.2%
CL-OP48 490 -0.2%
GLM-52 897 —
GPT-56SC 873 —
CL-OP5X 865 -0.9%
GROK-46H 865 -0.9%
GEM-37FH 865 -0.9%
GPT-56T 861 —
GLM-5 856 —
MUSE-SPK 841 —
QWEN-38X 824 -2.3%
GPT-6A 820 —
KIMI-K3X 810 -1%
CL-FAB5H 787 -0.9%
CL-OP5H 764 -0.9%
CL-OP46H 742 -0.9%
CL-OP47H 733 -1.1%
GEM-38FH 676 -1%
CL-OP47 585 -0.7%
INKL 531 —
CL-OP46 496 -0.2%
CL-OP48 490 -0.2%
← Back to feed

Inference Engine Bugs Let LLMs Execute Code on GPU Host Machines, Security Analysis Finds

A security analysis published by researcher Boyd Kane on LessWrong last week maps a threat class that has received little coverage relative to its potential severity: a malicious LLM exploiting bugs in the inference runtime to gain control of the GPU host running its weights.

The argument is straightforward. An LLM does not run on the same machine that executes its tool calls. Its token generation happens on a GPU server where its weights are loaded. That server is a high-value target: it has datacenter-grade compute, direct access to the model’s weights, and privileged network access to adjacent systems. The attack does not require jailbreaking in the conventional sense. It requires emitting a token sequence that the inference engine misparses as code rather than data.

The Existing CVE

The analysis is grounded in a real vulnerability. CVE-2025-9141 was an arbitrary code execution bug in vLLM’s XML-based tool parser for Qwen3 Coder. The parser passed nearly every tool-call argument to Python’s eval(), meaning an LLM could execute arbitrary code on the inference host by including a valid Python expression in a tool call parameter. The scope of access would be whatever the inference process’s OS user could reach — in many production deployments, that means the entire datacenter node.

The bug was introduced in a pull request. Gemini automatically analysed that PR and flagged it as a critical security vulnerability before it merged. The lead vLLM maintainer force-merged it anyway.

Why the Attack Surface Is Large

Inference engines are not simple text converters. vLLM documents support for more than 200 model architectures and ships approximately 35 Jinja chat templates for different model formats. Each template represents a parsing path; a subtle edge case in any of them can turn LLM output into an execution vector.

Kane documents a lower-severity example from a vLLM issue tracker: a user interacting with MiniMax-M3 found that when the model emitted the string <mm:think>, vLLM silently reclassified the subsequent text as a reasoning block rather than a response. The output the user received was wrong. The output the model intended was never shown. This is not arbitrary code execution, but it demonstrates that inference engines operate on model output rather than simply forwarding it — and that the parsing logic is complex enough to produce unexpected behaviour under normal use.

Multimodal architectures extend the surface further. Converting audio or visual token sequences to usable media requires additional parsing layers whose security properties are less studied than text parsing.

Defence Difficulty

The obvious mitigation is to red-team inference engines for exploitable bugs. Kane notes this is harder than it sounds. Inference engine developers are optimising primarily for speed and model compatibility, not for adversarial input. The pressure to support new model formats quickly — vLLM’s 200+ architecture list is a product of that pressure — works against the careful review needed to prevent parser vulnerabilities.

Sandboxing the inference process is a more structural defence: if the inference host’s OS user has no privileges worth stealing, host takeover provides limited value. But datacenter deployments often grant broad access to inference nodes for performance and orchestration reasons.

The analysis does not claim any current LLM is actively exploiting inference engines. The concern is about future capability: as LLMs become better at reasoning about software and as fine-tuning becomes cheaper, the likelihood of a model being trained or prompted to target inference engine vulnerabilities increases. The infrastructure hardening needed to close that gap lags the capability curve.

The full essay is available at boydkane.com and cross-posted to LessWrong.