Skip to main content
EPSS 0.2%top 93%

Openclaw cli: OpenClaw: Incomplete host-env-security-policy allows untrusted model to substitute compiler binaries via env overrides (CVE-2026-41373)

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

Description

OpenClaw CLI versions before 2026.3.31 contain an incomplete host environment security policy that allows an untrusted model to override compiler binaries via environment variables during approved host execution requests. This vulnerability requires an existing approved host-exec request within the trusted execution domain and is rated medium severity. The issue is fixed in version 2026.3.31.

CVSS v3.1

Score 6.1medium

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

Affected software

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

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:47:35 UTC

Technical Analysis

The OpenClaw CLI's host-env-security-policy.json prior to version 2026.3.31 does not fully restrict environment variable overrides for compiler binaries such as CC, CXX, CARGO_BUILD_RUSTC, and CMAKE_C_COMPILER. This incomplete policy allows an untrusted model, when executing within an approved host-exec request, to substitute these compiler binaries via environment overrides. Exploitation requires an existing approved host-exec request within the trusted execution domain, limiting the scope of the vulnerability. The issue was fixed in commit e277a37f896b5011a1df06e6490c6630074d0afa and patched in OpenClaw CLI version 2026.3.31.

Potential Impact

An attacker with the ability to submit an approved host-exec request can substitute compiler binaries via environment variable overrides, potentially leading to high integrity impact by executing malicious compiler binaries. Confidentiality impact is low and availability is not affected. The vulnerability is rated medium severity with a CVSS score of 6.1.

Mitigation Recommendations

Upgrade OpenClaw CLI to version 2026.3.31 or later, which includes the fix for this incomplete host environment security policy. The patch restricts environment variable overrides for compiler binaries to prevent substitution attacks. No additional mitigation is required if the upgrade is applied.

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

Threat ID: 6ac2459f12601ec6a3165d75

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

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

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

Views: 3

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