OpenClaw Vulnerability: Binary Hijack Risk in SafeBins Configuration

openclaw Updated 04 Mar 2026

Summary

03/03/2026
HIGH
Yes i
High
8.5

GHSA-5gj7-jf77-q2q2: OpenClaw: safeBins static default trusted dirs allow writable-dir binary hijack (jq). Affects openclaw versions < 2026.2.24. Fixed in 2026.2.24. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OpenClaw is an open-source tool designed for executing commands in a secure environment. It utilizes a feature called safeBins to manage executable binaries, ensuring that only trusted binaries are run. However, a flaw in its configuration allows for potential exploitation through writable directories, posing a risk to users who rely on this functionality.

Vulnerability Detail

The vulnerability arises from OpenClaw's reliance on static default trusted directories, which include package-manager paths such as /opt/homebrew/bin and /usr/local/bin. This configuration allows an attacker to place a malicious binary with the same name as a trusted executable (e.g., jq) in these directories. When OpenClaw evaluates safeBins, it may execute the attacker-controlled binary instead of the legitimate one, leading to unauthorized command execution. The severity of this vulnerability is rated as high, with a CVSS score of 8.5, indicating significant risk if exploited.

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.2.24

This is the first release that contains the fix.

npm install openclaw@2026.2.24

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

Workaround

As a temporary workaround, users can manually remove any writable directories from the safeBins configuration or ensure that no malicious binaries are placed in the trusted directories. This can be done by checking the contents of /opt/homebrew/bin and /usr/local/bin for any unauthorized binaries.

Conclusion

The OpenClaw vulnerability presents a significant risk due to its reliance on potentially writable directories for trusted binaries. Users are strongly advised to update to the patched version 2026.2.24 or later and implement recommended security practices to mitigate this risk.

See every vulnerability recorded for openclaw →

Share this vulnerability

FAQ

The vulnerability allows for binary hijacking due to the inclusion of writable directories in the safeBins configuration.

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

If you cannot update, consider implementing the recommended workarounds to mitigate the risk until you can apply the patch.

SafeBins is a feature in OpenClaw that manages which binaries can be executed, relying on a trust model based on directory membership.

The CVSS score of this vulnerability is 8.5, indicating a high level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for openclaw.

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.2.24

This is the first release that contains the fix.

npm install openclaw@2026.2.24

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.