Skip to main content
Menu
Advisories

metaharness MCP tools read and write arbitrary file paths supplied by the caller

GHSA-824F-VF3P-849WPublished Updated GitHub

Description

Impact

Several metaharness_* MCP tools passed caller-supplied file arguments straight to the plugin scripts: output paths (out for bench and redblue) were written wherever the caller pointed, and input paths (suite, config, in, aFile/bFile, baselineFile, currentFile, GEPA path, transcript) were read and their content echoed back. An MCP caller — for example an agent steered by untrusted content — could overwrite any file the user can write or read files outside the project.

Patches

Fixed in 3.80.3 (ruvnet/ruflo#5085). Over MCP, file arguments must be regular files inside the project directory (no symlinks, nothing in .git, output extensions restricted); the local CLI keeps operator-supplied paths. Regression test metaharness-tool-path-containment.test.ts.

Workarounds

Upgrade, or disable the metaharness plugin tools.

Affected versions

References

GitHub · ruvnet/ruflo