CVE-2026-27001
OpenClaw: Unsanitized CWD path injection into LLM prompts
描述
## Overview 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. ## Impact Prompt injection may alter agent behavior and could lead to unintended tool use or disclosure of sensitive information. ## Affected Packages / Versions - Package: `openclaw` (npm) - Vulnerable versions: `< 2026.2.15` (latest published vulnerable version as of 2026-02-16: `2026.2.14`) - Patched versions: `>= 2026.2.15` ## Fix The workspace path is now 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. ## Fix Commit(s) - `6254e96acf16e70ceccc8f9b2abecee44d606f79` Thanks @aether-ai-agent for reporting.
如何修補 CVE-2026-27001
要修補 CVE-2026-27001,請將受影響套件升級到下列已修補版本。
- —升級至 2026.2.15 或更新版本
CVE-2026-27001 正在被利用嗎?
低 — EPSS 為 0.0%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- from 0, < 2026.2.15
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |