Skip to main content
EPSS 0.5%top 63%

Openclaw cli: OpenClaw safeBins grep -e File Read Bypass (stdin-only policy bypass) (CVE-2026-32022)

0
Medium
Published: 08/13/2026 (08/13/2026, 17:21:32 UTC)
Source: GCVE Database
Product: openclaw-cli

Description

OpenClaw CLI's safeBins exec tooling had a vulnerability allowing a stdin-only policy bypass for the grep command when used with the -e/--regexp flag. This flaw permitted reading files from the working directory, such as .env, if grep was explicitly enabled in safeBins. The issue affects versions up to 2026.2.19-2 and is fixed starting from 2026.2.21. Exploitation requires grep to be opt-in and the ability to invoke exec tooling under that profile. The CVSS score is medium severity (6.5).

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected software

Homebrewmore threats →ghsa
openclaw-cli
pkg:brew/openclaw-cli
Affected versions
<2026.7.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/04/2026, 13:21:47 UTC

Technical Analysis

OpenClaw's tools.exec.safeBins configuration for grep allowed a stdin-only policy bypass due to how the -e/--regexp flag consumed its pattern argument, leaving room for one positional operand (a filename). This flaw permitted reading files from the working directory in contexts expected to restrict input to stdin. The vulnerability affects openclaw npm package versions <= 2026.2.19-2 and is patched in versions >= 2026.2.21. Exploitation requires grep to be explicitly added to safeBins and the ability to invoke the exec tooling under that profile. The CVSS v3.1 score is 6.5 (medium severity) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.

Potential Impact

If grep is enabled in safeBins, an attacker with low privilege and the ability to invoke exec tooling can bypass the stdin-only input restriction and read arbitrary files from the working directory, potentially exposing sensitive information such as environment variables or credentials. The impact is confidentiality loss without integrity or availability impact.

Mitigation Recommendations

A fix is available in openclaw versions >= 2026.2.21. Users should upgrade to this version or later to remediate the vulnerability. The vulnerability only applies if grep is explicitly enabled in safeBins; if grep is not enabled, this issue does not apply. No additional mitigation is required beyond applying the official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-openclaw-cli-CVE-2026-32022
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6ac245db12601ec6a31680b3

Added to database: 10/04/2026, 12:26:03 UTC

Last enriched: 10/04/2026, 13:21:47 UTC

Last updated: 10/04/2026, 16:08:37 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses