# CVE-2026-25157: OpenClaw/Clawdbot has OS Command Injection via Project Root Path in sshNodeCommand

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- 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): 1.05%, higher than 65% of CVEs (2026-12-01)
- Published: 2026-02-02T23:41:35.000Z
- Modified: 2026-06-17T10:24:12.537Z
- Also known as: GHSA-q284-4pvr-m585
- Weaknesses: CWE-78
- 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.1.29, there is an OS command injection vulnerability via the Project Root Path in sshNodeCommand. The sshNodeCommand function constructed a shell script without properly escaping the user-supplied project path in an error message. When the cd command failed, the unescaped path was interpolated directly into an echo statement, allowing arbitrary command execution on the remote SSH host. The parseSSHTarget function did not validate that SSH target strings could not begin with a dash. An attacker-supplied target like -oProxyCommand=... would be interpreted as an SSH configuration flag rather than a hostname, allowing arbitrary command execution on the local machine. This issue has been patched in version 2026.1.29.

(As written by CVE List.)

## Affected

- openclaw openclaw: < 2026.1.29; before 2026.1.29
- clawdbot (npm): before 2026.1.29

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/openclaw/openclaw/security/advisories/GHSA-q284-4pvr-m585> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25157> (advisory)
- <https://github.com/openclaw/openclaw> (package)

## Sources

- CVE List: [CVE-2026-25157](https://www.cve.org/CVERecord?id=CVE-2026-25157), CVE Terms of Use, modified 2026-02-05
- GitHub Advisory Database: [GHSA-q284-4pvr-m585](https://github.com/advisories/GHSA-q284-4pvr-m585), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2026-25157](https://nvd.nist.gov/vuln/detail/CVE-2026-25157), Public domain, modified 2026-06-17

---

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