CVE-2026-27001CWE-77

OpenClaw: Unsanitized CWD path injection into LLM prompts

High · published February 19, 2026

CVSS v4.0
8.6
EPSS
0%
Percentile
16.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.6 · HIGH
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
EPSS
0.00261 · 16.8th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2026-02-19T23:10Z
EPSS history
Timeline
  • 19 FEB 23:10Z
    OpenClaw: Unsanitized CWD path injection into LLM prompts
    cvelistv5