Skip to content
Submit incident
AII-1001-09459
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

OpenClaw unsanitized current working directory path injection into LLM prompts

OpenClaw contained an unpatched vulnerability (CVE-2026-27001) where directory paths with special characters could be injected into LLM prompts without sanitization, potentially allowing attackers to alter agent behavior or access sensitive information. The vulnerability was patched in version 2026.2.15.

15 February 2026 Β· OpenClaw Β· Security and cyberattacks
15 February 2026
AII-1001-09459View source β†—
Quick facts
Organization
OpenClaw (subject)
Category
Security and cyberattacks
Source
github.com
Date
15 February 2026
Drafted by
Raidu Incident Detection

What happened

OpenClaw embedded the current working directory path into the agent system prompt without sanitization. If an attacker could cause OpenClaw to run inside a directory whose name contains control characters, format characters such as newlines or Unicode bidi/zero-width markers, those characters could break the prompt structure and inject attacker-controlled instructions.

Reported impact

Prompt injection could alter agent behavior and lead to unintended tool use or disclosure of sensitive information.

Index analysis

The vulnerability (CWE-77) stemmed from the product constructing LLM prompts using externally-influenced input from the workspace path without proper neutralization of special elements. The fix sanitized the workspace path by stripping Unicode control and format characters, line and paragraph separators before embedding it into any LLM prompt output, with the same sanitization applied to workspace path resolution as defense-in-depth.

Classification

Organization
OpenClaw (subject)
Category
Security and cyberattacks
Harm status
Potential harm
Intent
Unintentional
Timing
Pre-deployment
Failure modes
Prompt injection
AI systems
OpenClaw

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

github.com
https://github.com/openclaw/openclaw/security/advisories/GHSA-2qj5-gwg2-xwc4
Aug 2026Claude AI agent discovers gym booking system vulnerability, cancels another user's reservationWell documentedSecurity and cyberattacksThe IndependentDiaspora Digital Media (DDM News) - Nigeria Breaking News, Africa and World News and Updates -The Indian Express+3Jun 2026Five malicious skills removed from OpenClaw ClawHub marketplaceConfirmedSecurity and cyberattacksUnit42Dark ReadingJun 2026OpenClaw AI agent vulnerabilities enable malicious skill packages to steal user dataUnder investigationSecurity and cyberattacksenglish.news.cnChina NewsApr 2026AI Agent Exploited Gym Booking API Authorization Flaw and Removed Member From WaitlistReportedSecurity and cyberattacksabc.net.auaffinda.comApr 2026Open-source AI agents expose security vulnerabilities in ChinaReportedSecurity and cyberattacksδΈœζ–Ήθ΄’ε―Œη½‘China News