Skip to main content
EPSS 0.2%top 93%

Openclaw cli: OpenClaw: Workspace .env STATE_DIRECTORY could influence bundled runtime dependency roots (CVE-2026-53858)

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

Description

A vulnerability in openclaw-cli allows a workspace .env file to influence the STATE_DIRECTORY environment variable, potentially causing bundled runtime dependencies to be loaded from unintended local paths. This affects versions from 2026.1.29 up to but not including 2026.5.2. The issue requires the affected feature to be enabled and reachable and depends on operator configuration and trust boundaries. The vulnerability does not alter the trusted-operator model of OpenClaw. A patch is available in version 2026.5.2. Mitigations include avoiding opening untrusted workspace .env files before patching and restricting access via allowlists and disabling the feature if not needed.

CVSS v3.1

Score 7.1high

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

Affected software

Homebrewmore threats →ghsa
openclaw-cli
pkg:brew/openclaw-cli
Affected versions
>=2026.1.29 <2026.5.2

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, 12:34:47 UTC

Technical Analysis

The vulnerability CVE-2026-53858 in openclaw-cli arises from the ability of a workspace .env file to set the STATE_DIRECTORY environment variable before runtime dependency root resolution. This can cause the system to load bundled runtime dependencies from unintended local state paths if the feature is enabled and the workspace is opened by a trusted operator. The impact depends on the operator's configuration and whether lower-trust inputs can influence the path. The trusted-operator model remains intact, meaning only authenticated Gateway operators and installed plugins are trusted unless additional policy boundaries are crossed. The issue is fixed starting with openclaw-cli version 2026.5.2.

Potential Impact

If exploited, this vulnerability could lead to loading runtime dependencies from unintended local paths, potentially allowing an attacker to influence the runtime environment. The severity is high with a CVSS score of 7.1, indicating a significant confidentiality and integrity impact without availability impact. The practical impact depends on the operator's configuration and trust boundaries, as well as whether untrusted inputs can affect the STATE_DIRECTORY path.

Mitigation Recommendations

A patch is available in openclaw-cli version 2026.5.2. Until patched, users should avoid opening untrusted workspace .env files before runtime dependency installation. Additional mitigations include maintaining narrow channel and tool allowlists, avoiding sharing a Gateway between mutually untrusted users, and disabling the affected feature when it is not needed.

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-53858
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6ac2458a12601ec6a3164117

Added to database: 10/04/2026, 12:24:42 UTC

Last enriched: 10/04/2026, 12:34:47 UTC

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

Views: 1

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