sublinear-time-solver: Arbitrary file write in consciousness-explorer / sublinear-time-solver MCP export_state
ruvnet sublinear-time-solver
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| consciousness-explorer npm |
|
|
| sublinear-time-solver npm |
|
|
ruvnet sublinear-time-solver
| Product | Affected | Fixed in |
|---|---|---|
| consciousness-explorer npm |
|
|
| sublinear-time-solver npm |
|
|
sublinear-time-solver is a Rust and WebAssembly library for solving asymmetric diagonally dominant systems in sublinear time. Prior to consciousness-explorer 1.1.2 and sublinear-time-solver 1.6.0, the export_state and import_state tools in src/consciousness-explorer/mcp/server.js pass the attacker-controlled filepath parameter to filesystem operations in src/consciousness-explorer/index.js without restricting the destination or rejecting traversal. The saveVectorToFile and loadVectorFromFile tools in src/mcp/server.ts contain the same sink class through the file_path parameter. An attacker able to invoke the MCP tools can read, write, or overwrite any file accessible to the server process, causing confidentiality and integrity loss and possible service disruption. This issue is fixed in consciousness-explorer 1.1.2 and sublinear-time-solver 1.6.0.
From the CVE record · GitHub_M
The MCP file tools in affected consciousness-explorer and sublinear-time-solver packages do not restrict attacker-controlled file paths. An attacker able to invoke these tools can read, write, or overwrite files accessible to the server process, potentially disrupting the service.
Check installations of npm consciousness-explorer before 1.1.2 and npm sublinear-time-solver before 1.6.0.