{"id":"CVE-2026-27001","published":"2026-02-19T23:10:07Z","modified":"2026-02-20T15:38:14Z","title":"OpenClaw: Unsanitized CWD path injection into LLM prompts","vendor":"openclaw","product":"openclaw","tier":"tail","description":{"text":"OpenClaw is a personal AI assistant. Prior to version 2026.2.15, OpenClaw embedded the current working directory (workspace path) into the agent system prompt without sanitization. If an attacker can cause OpenClaw to run inside a directory whose name contains control/format characters (for example newlines or Unicode bidi/zero-width markers), those characters could break the prompt structure and inject attacker-controlled instructions. Starting in version 2026.2.15, the workspace path is sanitized before it is embedded into any LLM prompt output, stripping Unicode control/format characters and explicit line/paragraph separators. Workspace path resolution also applies the same sanitization as defense-in-depth.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00278,"percentile":0.12896,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-2qj5-gwg2-xwc4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/openclaw/openclaw/commit/6254e96acf16e70ceccc8f9b2abecee44d606f79","tags":["x_refsource_MISC"]},{"url":"https://github.com/openclaw/openclaw/releases/tag/v2026.2.15","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":2.58},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"openclaw","affectedVersions":[{"vendor":"openclaw","product":"openclaw","versions":["< 2026.2.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-20T15:29:33.374427Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"openclaw","vulnerableRanges":["<2026.2.15"],"patched":["2026.2.15"],"from":["GHSA-2qj5-gwg2-xwc4"],"provenance":"source"}],"summary":{"text":"The flaw is in OpenClaw's agent system prompt construction, where the current working directory (workspace path) is embedded into LLM prompts without sanitization, so directory names containing control or format characters such as newlines or Unicode bidi/zero-width markers can break prompt structure. An attacker who can get OpenClaw to run inside a directory with such a name, for example through local access, can inject instructions of their choosing into the prompt, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:20Z"},"euvd":{"id":"EUVD-2026-8415","exploited":false,"provenance":"source"}}