{"id":"CVE-2026-4040","aliases":["GHSA-6c9j-x93c-rw6j"],"url":"https://o3.security/vulnerability/CVE-2026-4040","summary":"OpenClaw File Existence tools.exec.safeBins information exposure","details":"An information disclosure vulnerability in OpenClaw's `tools.exec.safeBins` approval flow allowed a file-existence oracle.\n\nWhen safe-bin validation examined candidate file paths, command allow/deny behavior could differ based on whether a path already existed on the host filesystem. An attacker could probe for file presence by comparing outcomes for existing vs non-existing filenames.\n\n## Affected Packages / Versions\n- Package: `openclaw` (npm)\n- Affected versions: `<= 2026.2.17`\n- Latest published vulnerable version at triage time: `2026.2.17`\n- Planned patched version: `2026.2.18`\n\n## Impact\nAttackers with access to this execution surface could infer whether specific files exist (for example secrets/config files), enabling filesystem enumeration and improving follow-on attack planning.\n\n## Fix\nThe safe-bin policy was changed to deterministic argv-only validation without host file-existence checks. File-oriented flags are blocked for safe-bin mode (for example `sort -o`, `jq -f`, `grep -f`), and trusted-path checks remain enforced.\n\n## Fix Commit(s)\n- `bafdbb6f112409a65decd3d4e7350fbd637c7754`\n\nFound using [MCPwner](https://github.com/Pigyon/MCPwner)\n\nThanks @nedlir for reporting.","published":"2026-03-12T12:02:14.140Z","modified":"2026-11-04T02:51:07.052788924Z","cvss":null,"epss":{"score":0.00134,"percentile":0.03247,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"openclaw","fixedVersion":"2026.2.19"}],"fix":{"url":"https://github.com/openclaw/openclaw/commit/bafdbb6f112409a65decd3d4e7350fbd637c7754","label":"openclaw/openclaw@bafdbb6"},"references":[{"type":"WEB","url":"https://github.com/openclaw/openclaw/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4040.json"},{"type":"ADVISORY","url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-6c9j-x93c-rw6j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4040"},{"type":"ADVISORY","url":"https://vuldb.com/?id.350652"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.769581"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.350652"},{"type":"FIX","url":"https://github.com/openclaw/openclaw/commit/bafdbb6f112409a65decd3d4e7350fbd637c7754"},{"type":"FIX","url":"https://github.com/openclaw/openclaw/releases/tag/v2026.2.19-beta.1"},{"type":"PACKAGE","url":"https://github.com/openclaw/openclaw"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-04T02:51:07.052788924Z"}}