Current Working Directory Injection Vulnerability in OpenClaw Package
Summary
GHSA-h36m-2vh5-x699: Duplicate Advisory: ACPX Windows wrapper shell fallback allowed cwd injection in specific paths. Affects openclaw versions >= 2026.2.26. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
OpenClaw is a package designed for Windows that facilitates the execution of command-line scripts through .cmd and .bat files. It allows users to create wrappers for these scripts, enhancing usability and integration with Windows environments. However, versions prior to 2026.3.1 are susceptible to a vulnerability that can lead to command execution integrity loss due to improper handling of the current working directory during wrapper resolution.
Vulnerability Detail
The vulnerability arises from a flaw in the wrapper resolution mechanism for .cmd and .bat files in OpenClaw versions 2026.2.26 and earlier. Attackers can exploit this flaw by manipulating the current working directory (cwd), which can lead to unintended command execution. This could allow remote attackers to influence the execution behavior of scripts, potentially leading to unauthorized access or control over the system. The vulnerability is classified under CWE-78, indicating a command injection risk.
How To Fix
No fixed version is published for this vulnerability.
To rectify this vulnerability, it is essential to update OpenClaw to version 2026.3.1 or later. You can do this by running the following command in your terminal: npm install openclaw@2026.3.1. This will ensure that you are using the patched version of the package that addresses the cwd injection issue.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can avoid using the affected versions of OpenClaw until you can update to the patched version. Additionally, ensure that your scripts do not rely on the current working directory being set to a potentially exploitable path.
Conclusion
In summary, the OpenClaw package has a current working directory injection vulnerability in versions prior to 2026.3.1. Users are advised to update to the latest version to mitigate risks associated with this vulnerability. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for openclaw →
FAQ
The CVSS score of this vulnerability is 6.3, indicating a moderate level of risk.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If exploited, this vulnerability could allow attackers to execute arbitrary commands, leading to unauthorized access or control over the affected system.
Yes, you should upgrade to OpenClaw version 2026.3.1 or later to mitigate the vulnerability.
The cwd injection vulnerability allows attackers to manipulate the current working directory during script execution, potentially leading to command execution integrity loss.
Related vulnerabilities
Recent vulnerabilities recorded for openclaw.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.