Openclaw cli: OpenClaw affected by potential code execution via unsafe hook module path handling in Gateway (CVE-2026-28456)
Description
OpenClaw Gateway versions from 2026.1.29 up to 2026.2.13 contain a vulnerability where unsafe handling of hook module paths allows an attacker with configuration modification privileges to execute arbitrary code. This occurs because the gateway does not sufficiently restrict module paths before dynamically importing them. The vulnerability is patched in version 2026.2.14. Users should upgrade to the fixed version and avoid exposing configuration endpoints to untrusted networks.
CVSS v3.1
Score 7.2high
Affected software
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
Technical Analysis
OpenClaw Gateway supports hook mappings with optional JavaScript/TypeScript transform modules. In affected versions (>=2026.1.29 <2026.2.14), the gateway fails to properly constrain configured module paths before passing them to dynamic import(), which can allow a user with the ability to modify gateway configuration to cause the gateway process to load and execute unintended local modules. This leads to potential code execution within the Node.js process running the gateway.
Potential Impact
An attacker who has high-privilege access to modify the gateway configuration (e.g., via configuration endpoints) can exploit this vulnerability to execute arbitrary code in the OpenClaw gateway Node.js process. This could lead to full compromise of the gateway process and potentially the host system.
Mitigation Recommendations
A fix is available in OpenClaw version 2026.2.14 and later. Users should upgrade to this version or newer. Additionally, avoid exposing gateway configuration endpoints to untrusted networks and review configuration values for unsafe module paths in hooks.mappings[].transform.module and hooks.internal.handlers[].module to prevent exploitation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-28456
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac245c912601ec6a3167f11
Added to database: 10/04/2026, 12:25:45 UTC
Last enriched: 10/04/2026, 13:10:34 UTC
Last updated: 10/04/2026, 16:08:37 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.