OpenClaw Vulnerability: Missing Git Environment Variable Denylist

openclaw Updated 09 Apr 2026

Summary

09/04/2026
LOW
Yes i
Low
2.0

GHSA-cm8v-2vh9-cxf3: Impact GIT_DIR and related git plumbing env vars missing from exec env denylist (GHSA-m866-6qv5-p2fg variant). Affects openclaw versions < 2026.4.8. Fixed in 2026.4.8. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

OpenClaw is a user-controlled local assistant designed to enhance user productivity by automating tasks and managing local resources. It leverages various Git operations to streamline workflows. However, it has been identified that certain Git plumbing environment variables, specifically GIT_DIR, were not adequately removed from the execution environment, leading to potential security risks.

Vulnerability Detail

The vulnerability arises from the failure to remove Git plumbing environment variables, such as GIT_DIR, from the execution environment before executing host commands. This oversight can allow malicious actors to redirect Git operations, potentially compromising the integrity of the application and the user's data. The vulnerability is categorized under CWE-184 (Improper Neutralization of Special Elements) and CWE-78 (OS Command Injection), indicating a significant risk to the application's security.

How To Fix

Latest published version: 2026.10.6 as of 22 Oct 2026

npm install openclaw@2026.10.6

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2026.4.8

This is the first release that contains the fix.

npm install openclaw@2026.4.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can manually unset the GIT_DIR and related environment variables before executing any commands that rely on OpenClaw. This can be done in a Unix-like terminal using the following command: unset GIT_DIR.

Conclusion

The OpenClaw package has a vulnerability related to the handling of Git environment variables, which could lead to security risks. It is crucial to update to the patched version 2026.4.8 to mitigate these risks. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.

See every vulnerability recorded for openclaw →

Share this vulnerability

FAQ

The vulnerability can allow unauthorized redirection of Git operations, potentially leading to data compromise.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score of this vulnerability is 2.0, indicating a low severity level.

Yes, the vulnerability has been patched in version 2026.4.8 of the OpenClaw package.

If you cannot update the package, ensure to unset the GIT_DIR and related environment variables as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for openclaw.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 2026.10.6 as of 22 Oct 2026

npm install openclaw@2026.10.6

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2026.4.8

This is the first release that contains the fix.

npm install openclaw@2026.4.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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.