OpenClaw up to 2026.2.18 Environment Variable gateway.cmd os command injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.3 | $0-$5k | 0.00 |
Summary
A vulnerability has been found in OpenClaw up to 2026.2.18 and classified as critical. The impacted element is an unknown function of the file gateway.cmd of the component Environment Variable Handler. This manipulation causes os command injection. This vulnerability is registered as CVE-2026-22176. The attack needs to be launched locally. No exploit is available. The affected component should be upgraded.
Details
A vulnerability was found in OpenClaw up to 2026.2.18. It has been declared as critical. Affected by this vulnerability is an unknown part of the file gateway.cmd of the component Environment Variable Handler. The manipulation with an unknown input leads to a os command injection vulnerability. The CWE definition for the vulnerability is CWE-78. The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
OpenClaw versions prior to 2026.2.19 contain a command injection vulnerability in Windows Scheduled Task script generation where environment variables are written to gateway.cmd using unquoted set KEY=VALUE assignments, allowing shell metacharacters to break out of assignment context. Attackers can inject arbitrary commands through environment variable values containing metacharacters like &, |, ^, %, or ! to achieve command execution when the scheduled task script is generated and executed.
It is possible to read the advisory at github.com. This vulnerability is known as CVE-2026-22176 since 01/06/2026. The exploitation appears to be easy. Attacking locally is a requirement. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1202 according to MITRE ATT&CK.
Upgrading to version 2026.2.19 eliminates this vulnerability. Applying the patch dafe52e8cf1a041d898cfb304a485fa05e5f58fb is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at CNNVD (CNNVD-202603-3584) and CERT Bund (WID-SEC-2026-0586). Be aware that VulDB is the high quality source for vulnerability data.
Affected
- Open Source OpenClaw
Product
Type
Name
Version
- 2026.2.0
- 2026.2.1
- 2026.2.2
- 2026.2.3
- 2026.2.4
- 2026.2.5
- 2026.2.6
- 2026.2.7
- 2026.2.8
- 2026.2.9
- 2026.2.10
- 2026.2.11
- 2026.2.12
- 2026.2.13
- 2026.2.14
- 2026.2.15
- 2026.2.16
- 2026.2.17
- 2026.2.18
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 6.4VulDB Meta Temp Score: 6.3
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔒
CNA Base Score: 6.1
CNA Vector (VulnCheck): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Os command injectionCWE: CWE-78 / CWE-77 / CWE-74
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: No
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: OpenClaw 2026.2.19
Patch: dafe52e8cf1a041d898cfb304a485fa05e5f58fb
Timeline
01/06/2026 CVE reserved03/19/2026 Advisory disclosed
03/19/2026 VulDB entry created
03/23/2026 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-pj5x-38rw-6fph
Status: Confirmed
CVE: CVE-2026-22176 (🔒)
GCVE (CVE): GCVE-0-2026-22176
GCVE (VulDB): GCVE-100-351655
CERT Bund: WID-SEC-2026-0586 - OpenClaw: Mehrere Schwachstellen
CNNVD: CNNVD-202603-3584 - OpenClaw 操作系统命令注入漏洞
Entry
Created: 03/19/2026 07:37Updated: 03/23/2026 22:36
Changes: 03/19/2026 07:37 (80), 03/20/2026 18:32 (6), 03/22/2026 10:54 (1), 03/22/2026 14:34 (11), 03/22/2026 17:21 (1), 03/23/2026 04:05 (7), 03/23/2026 22:36 (1)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.