{"id":"GHSA-xc9g-j69q-37xw","revision":"1edbcb7bda12413e851386228ef06e78","records":[{"revision":"1edbcb7bda12413e851386228ef06e78","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-xc9g-j69q-37xw","aliases":["CVE-2026-55609"],"title":"consciousness-explorer / sublinear-time-solver MCP export_state has an arbitrary file write","description":"### Impact\nAn arbitrary file write vulnerability (CWE-73, External Control of File Name or Path) exists in the `consciousness-explorer` component of `sublinear-time-solver`. The MCP `export_state` (and `import_state`) tool accepted a user-supplied `filepath` argument and passed it directly to `fs.writeFileSync` / `fs.readFileSync` without constraining the destination or rejecting path traversal. An attacker able to invoke the MCP tool could write or overwrite any file accessible to the server process (e.g. `~/.ssh/authorized_keys`, application files), leading to integrity loss and potential service disruption.\n\nThe same sink class was present in the main solver MCP server (`saveVectorToFile` / `loadVectorFromFile`).\n\n### Affected versions\n- `consciousness-explorer` < 1.1.2\n- `sublinear-time-solver` < 1.6.0\n- `sublinear` (crates.io) < 0.2.0\n\n### Patches\n- `consciousness-explorer@1.1.2`\n- `sublinear-time-solver@1.6.0`\n- `sublinear@0.2.0`\n\nState/vector files are now confined to a dedicated directory (overridable via `$CONSCIOUSNESS_EXPLORER_STATE_DIR` / `$SUBLINEAR_SOLVER_VECTOR_DIR`), a basename-only contract is enforced (rejecting separators, `..`, NUL/control chars, hidden files, and Windows reserved names), and files are opened with `O_NOFOLLOW | O_CLOEXEC` mode `0o600`. Covered by 14 regression tests in `tests/consciousness/safe-path.test.mjs`.\n\n**Breaking change:** callers must now pass a basename, not an absolute path.\n\n### Workarounds\nDo not expose the MCP server to untrusted clients; restrict `export_state` to trusted local users; run the server under a low-privilege account with a restricted working directory.","state":0,"publishedAt":"2026-08-25T18:35:32+00:00","modifiedAt":"2026-08-26T00:55:48.151533+00:00","affected":[{"ecosystem":"npm","name":"consciousness-explorer","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.1.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"sublinear-time-solver","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.6.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/ruvnet/sublinear-time-solver/security/advisories/GHSA-xc9g-j69q-37xw","https://github.com/BruceJqs/public_exp/issues/32","https://github.com/ruvnet/sublinear-time-solver/issues/19","https://github.com/ruvnet/sublinear-time-solver/pull/20","https://github.com/ruvnet/sublinear-time-solver/commit/a701296e363192be863e79d788fa268095e3d229","https://github.com/ruvnet/sublinear-time-solver/commit/ea9a212b69e4449ec443fe088a7aec7546f70b4a","https://github.com/ruvnet/sublinear-time-solver","https://github.com/ruvnet/sublinear-time-solver/releases/tag/v1.6.0"],"sourceUrl":"https://github.com/advisories/GHSA-xc9g-j69q-37xw","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-xc9g-j69q-37xw","identifiers":["GHSA-xc9g-j69q-37xw","CVE-2026-55609"]},"retained":false,"historicalAffected":[]}],"coverage":[]}