{"id":"CVE-2026-4040","aliases":["CVE-2026-4040","GHSA-6c9j-x93c-rw6j"],"related":[],"kind":"vulnerability","state":"published","title":"OpenClaw File Existence tools.exec.safeBins information exposure","summary":"A vulnerability was identified in OpenClaw up to 2026.2.17. This issue affects the function tools.exec.safeBins of the component File Existence Handler. The manipulation leads to information exposure through discrepancy. The attack needs to be performed locally. Upgrading to version 2026.2.19-beta.1 is capable of addressing this issue. The identifier of the patch is bafdbb6f112409a65decd3d4e7350fbd637c7754. Upgrading the affected component is advised.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability was identified in OpenClaw up to 2026.2.17. This issue affects the function tools.exec.safeBins of the component File Existence Handler. The manipulation leads to information exposure through discrepancy. The attack needs to be performed locally. Upgrading to version 2026.2.19-beta.1 is capable of addressing this issue. The identifier of the patch is bafdbb6f112409a65decd3d4e7350fbd637c7754. Upgrading the affected component is advised.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad fue identificada en OpenClaw hasta 2026.2.17. Este problema afecta la función tools.exec.safeBins del componente Gestor de Existencia de Archivos. La manipulación conduce a la exposición de información a través de discrepancia. El ataque necesita ser realizado localmente. La actualización a la versión 2026.2.19-beta.1 es capaz de abordar este problema. El identificador del parche es bafdbb6f112409a65decd3d4e7350fbd637c7754. Se aconseja actualizar el componente afectado.","source":"nvd"}],"published":"2026-02-19T22:06:26.000Z","modified":"2026-06-17T10:55:53.283Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X","score":4.8,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:X/RL:O/RC:C","score":3.3,"rating":"LOW"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:X/RL:O/RC:C","score":3.3,"rating":"LOW"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:S/C:P/I:N/A:N/E:ND/RL:OF/RC:C","score":1.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-203"],"affected":[{"ranges":[{"version":"2026.2.0","status":"affected"},{"version":"2026.2.1","status":"affected"},{"version":"2026.2.2","status":"affected"},{"version":"2026.2.3","status":"affected"},{"version":"2026.2.4","status":"affected"},{"version":"2026.2.5","status":"affected"},{"version":"2026.2.6","status":"affected"},{"version":"2026.2.7","status":"affected"},{"version":"2026.2.8","status":"affected"},{"version":"2026.2.9","status":"affected"},{"version":"2026.2.10","status":"affected"},{"version":"2026.2.11","status":"affected"},{"version":"2026.2.12","status":"affected"},{"version":"2026.2.13","status":"affected"},{"version":"2026.2.14","status":"affected"},{"version":"2026.2.15","status":"affected"},{"version":"2026.2.16","status":"affected"},{"version":"2026.2.17","status":"affected"},{"version":"2026.2.19-beta.1","status":"unaffected"}],"product":"OpenClaw","cpe":"cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2026.2.19"}],"ecosystem":"npm","package":"openclaw","purl":"pkg:npm/openclaw","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2026.2.0","fixed":"2026.2.19"}],"vendor":"openclaw","product":"openclaw","cpe":"cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://vuldb.com/?id.350652","tags":["technical-description","third-party-advisory","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://vuldb.com/?ctiid.350652","tags":["permissions-required","signature","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://vuldb.com/?submit.769581","tags":["third-party-advisory","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-6c9j-x93c-rw6j","tags":["related","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/bafdbb6f112409a65decd3d4e7350fbd637c7754","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/releases/tag/v2026.2.19-beta.1","tags":["patch","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openclaw/openclaw/","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4040","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw","tags":["package"],"sources":["ghsa"]}],"credits":["nedlir (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-12T13:08:04.596Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-4040","url":"https://www.cve.org/CVERecord?id=CVE-2026-4040","licence":"CVE Terms of Use","modified":"2026-03-12T13:08:57.088Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6c9j-x93c-rw6j","url":"https://github.com/advisories/GHSA-6c9j-x93c-rw6j","licence":"CC-BY-4.0","modified":"2026-03-14T05:26:20.132Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-4040","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4040","licence":"Public domain","modified":"2026-06-17T10:55:53.283Z"}],"updatedAt":"2026-11-25T22:59:15.824Z","epss":{"score":0.00156,"percentile":0.05052,"date":"2026-12-02T12:00:21.000Z"}}