Current Working Directory Injection Vulnerability in OpenClaw Package

openclaw Updated 20 Mar 2026

Summary

19/03/2026
MODERATE
No i
Moderate
6.3

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.