Skip to content
RCE Write-up Intermediate

Trust the Caller, Trust the Output: Six CVEs in the AI Tooling Bo

Multiple open-source AI tools and MCP servers had vulnerabilities including missing authentication, unsafe eval/exec of model output, and broken authorization. Attackers could achieve remote code execution, arbitrary SQL access, or invoke tools with the operator's credentials.

riczardo Follow

Published on medium.com

A tool I was testing generated a Matplotlib chart from a plain-English request. So I asked it, politely, for one more thing:

riczardo, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the tools trusted either the caller (by skipping authentication when credentials were absent or missing a check) or the model's output (by executing it as code without sandboxing).

Impact

Attackers could run arbitrary commands on the host, execute SQL against the application's database, or invoke connected tools using the operator's stored credentials.

What the attacker needed

Network access to the service; ability to influence model output; no authentication required

The fix

The issues were fixed by the maintainers, and the author recommends failing closed on missing credentials, authenticating every route in middleware, treating model output as untrusted, defaulting to localhost, and deriving identity from the session.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

These are bugs in AI tools where the software either lets anyone run powerful commands without checking who they are, or takes text written by an AI model and runs it as computer code. An attacker can then run their own commands on the server or read private data.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.