{"answers":{"affected":"2 open source packages ship an affected version, including clawdbot. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-25157 in the wild and no public exploit code.","fix":"Upgrade clawdbot to 2026.1.29 or later.","what":"CVE-2026-25157 is a high-severity command injection vulnerability in Openclaw Openclaw, published on 4 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-25157 and fix it if it is affected.\n\nWhat it is: CVE-2026-25157 is a high-severity command injection vulnerability in Openclaw Openclaw, published on 4 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-25157 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- clawdbot (npm): affected all versions; fixed in 2026.1.29\n- clawdbot (npm): affected all versions; fixed in 2026.1.29\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-25157/ (Markdown: https://insights.sbomify.com/CVE-2026-25157/index.md)","id":"CVE-2026-25157","markdown":"https://insights.sbomify.com/CVE-2026-25157/index.md","name":"CVE-2026-25157","record":{"aliases":["GHSA-q284-4pvr-m585"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"OpenClaw AI assistant","requires_auth":"none","summary":"OpenClaw allows OS command injection via unescaped project paths and SSH target arguments, enabling arbitrary code execution on local and remote hosts.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"openclaw","vendor":"openclaw"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"OpenClaw/Clawdbot has OS Command Injection via Project Root Path in sshNodeCommand","id":"CVE-2026-25157","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"openclaw:openclaw","products":["openclaw:openclaw"],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Alist has Insecure TLS Config","id":"CVE-2026-25160"},"packages":[{"ecosystem":"npm","fixed":["2026.1.29"],"introduced":["0"],"last_affected":[],"package":"clawdbot","purl":null,"source":"GHSA-q284-4pvr-m585"},{"ecosystem":"npm","fixed":["2026.1.29"],"introduced":["0"],"last_affected":[],"package":"clawdbot","purl":"pkg:npm/clawdbot","source":"GHSA-q284-4pvr-m585"}],"prev":{"headline":"HotCRP vulnerable to stored XSS via comment attachments","id":"CVE-2026-25156"},"products":["openclaw"],"published":"2026-02-04","related":[{"cvss_score":9.9,"headline":"Security feature bypass in OpenClaw","id":"CVE-2026-28363","kev_date_added":null,"published":"2026-02-27"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2026-30741","kev_date_added":null,"published":"2026-03-11"},{"cvss_score":9.4,"headline":"OpenClaw \u003c 2026.3.28 - Privilege Escalation via Missing Caller Scope Validation in Device Pair Approval","id":"CVE-2026-33579","kev_date_added":null,"published":"2026-03-31"},{"cvss_score":9.4,"headline":"OpenClaw \u003c 2026.3.11 - Privilege Escalation via Unvalidated Scope in device.token.rotate","id":"CVE-2026-32922","kev_date_added":null,"published":"2026-03-29"},{"cvss_score":9.4,"headline":"OpenClaw \u003c 2026.3.11 - Approval Bypass via Unrecognized Script Runners","id":"CVE-2026-32978","kev_date_added":null,"published":"2026-03-29"},{"cvss_score":9.4,"headline":"OpenClaw \u003c 2026.3.12 - Scope Elevation in WebSocket Shared-Auth Connections","id":"CVE-2026-22172","kev_date_added":null,"published":"2026-03-20"},{"cvss_score":9.4,"headline":"OpenClaw \u003c 2026.2.14 - Remote Code Execution via Node Invoke Approval Bypass","id":"CVE-2026-28466","kev_date_added":null,"published":"2026-03-05"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-05","vendors":["openclaw"]},"summary":"OpenClaw allows OS command injection via unescaped project paths and SSH target arguments, enabling arbitrary code execution on local and remote hosts.","url":"https://insights.sbomify.com/CVE-2026-25157/"}