Ingenious AI

Ingenious AI · Agent security · Free self-check

Your agent's “read-only” tools can run programs

One lesson ran through the 11–22 November 2026 advisories: read-only is not a control. CodeWhale's parallel read-only classifier auto-approved fd, rg and git grep calls whose own flags execute any program (CVE-2026-83816, GHSA-3mgh-93r5-r7jf). sqlite-mcp's read-only mode fell to statement chaining and ATTACH (CVE-2026-130008, GHSA-q433-mp6c-8v4f). And read-only git operations can execute whatever a repo's .git/config names in keys like core.fsmonitor. This page runs a deterministic battery — no classifier, no guessing — over your own tool definitions.

What this does — and does not do

Does: pattern-checks tool definitions, tool descriptions, allowlists and config text you paste against the known escape surface: exec flags on search tools (fd -x/--exec, rg --pre, git grep --open-files-in-pager), git config execution keys (core.fsmonitor, core.pager, filter/merge drivers), and read-only SQL that chains statements (;) or attaches databases (ATTACH). It also flags definitions that claim read-only while exposing a shell.

Does not: execute any command, run any tool, or connect to your agent. It is a static battery over text you paste — a flag is a prompt to check how your framework actually invokes the tool, not proof of exploitation. Nothing is sent or stored.

Paste your tool definitions

The facts behind this check

GHSA-3mgh-93r5-r7jf (CVE-2026-83816): "CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE" — versions 0.8.67 and earlier were affected; the fix shipped in 0.9.0. The mechanism is the point: the classifier asked “is this command read-only?” while the command's own flags (fd --exec, rg --pre, git grep --open-files-in-pager) had already answered “it runs what I say.” GHSA-q433-mp6c-8v4f (CVE-2026-130008): in sqlite-mcp's read-only mode — the default — "a client that can call the MCP tools can write to the database the server is meant to expose read-only, read other SQLite files, and create new SQLite files anywhere the server process can write," via statement chaining and ATTACH. The third leg needs no advisory ID to be real: git executes programs named by config keys such as core.fsmonitor during otherwise read-only operations, and a cloned repo brings its config with it. The durable fix is never the label: strip exec-capable flags at the invocation layer, reject chained statements at the SQL layer, and treat repo-supplied git config as code.

Sources

GitHub Advisory GHSA-3mgh-93r5-r7jf — CVE-2026-83816 (CodeWhale) · GitHub Advisory GHSA-q433-mp6c-8v4f — CVE-2026-130008 (sqlite-mcp)

Shipping agents with tool access? TrustGate watches approved MCP servers for toxic capability combinations. This page is a one-off static battery, not monitoring.

← Back to Ingenious AI home