# CVE-2026-27001: OpenClaw: Unsanitized CWD path injection into LLM prompts

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-02-18T22:42:29.000Z
- Modified: 2026-06-17T10:26:30.990Z
- Also known as: GHSA-2qj5-gwg2-xwc4
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- openclaw openclaw: < 2026.2.15; before 2026.2.15
- openclaw (npm): before 2026.2.15

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/openclaw/openclaw/security/advisories/GHSA-2qj5-gwg2-xwc4> (patch, vendor-advisory, web)
- <https://github.com/openclaw/openclaw/commit/6254e96acf16e70ceccc8f9b2abecee44d606f79> (patch, web)
- <https://github.com/openclaw/openclaw/releases/tag/v2026.2.15> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27001> (advisory)
- <https://github.com/openclaw/openclaw> (package)

## Sources

- CVE List: [CVE-2026-27001](https://www.cve.org/CVERecord?id=CVE-2026-27001), CVE Terms of Use, modified 2026-02-20
- GitHub Advisory Database: [GHSA-2qj5-gwg2-xwc4](https://github.com/advisories/GHSA-2qj5-gwg2-xwc4), CC-BY-4.0, modified 2026-02-20
- NVD: [CVE-2026-27001](https://nvd.nist.gov/vuln/detail/CVE-2026-27001), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27001 · Whole record: https://cve.day/CVE-2026-27001.json · Rebuilt by cve.day 2026-11-25T22:59:14.300Z
