6.9medium
OpenClaw - Approval Bypass via Environment Variable Normalization
- Severity
- 6.9medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-98ch-45wp-ch47GHSA-h3x4-hc5v-v2gm
Description
OpenClaw versions prior to commit b57b680 contain an approval bypass vulnerability due to inconsistent environment variable normalization between approval and execution paths, allowing attackers to inject attacker-controlled environment variables into execution without approval system validation. Attackers can exploit differing normalization logic to discard non-portable keys during approval processing while accepting them at execution time, bypassing operator review and potentially influencing runtime behavior including execution of attacker-controlled binaries.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| OpenClaw OpenClaw | before b57b680c0c34de907d57f60c38fb358e82aef8f7, before 2026.4.2 | CVE List, NVD |
| openclaw (npm) | before 2026.4.2, before 2026.3.22 | GitHub Advisory Database |
All scores
| VulnCheck | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Classification
What each source says
CVE List
OpenClaw versions prior to commit b57b680 contain an approval bypass vulnerability due to inconsistent environment variable normalization between approval and execution paths, allowing attackers to inject attacker-controlled environment variables into execution without approval system validation. Attackers can exploit differing normalization logic to discard non-portable keys during approval processing while accepting them at execution time, bypassing operator review and potentially influencing runtime behavior including execution of attacker-controlled binaries.
GitHub Advisory Database
Summary
Before OpenClaw 2026.4.2, system-run approval binding normalized environment override keys differently from host execution. Windows-compatible keys could be omitted from the approval binding while still being injected at execution time.
Impact
An approved command could run with attacker-chosen environment overrides that were not represented in the approval binding. This created an approval-integrity gap for affected host-exec flows.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.4.1 - Patched versions:
>= 2026.4.2 - Latest published npm version:
2026.4.1
Fix Commit(s)
7eb094a00d80e9f6bf0e62f2c45d3b88ff67c04d— align approval binding with execution-time env-key normalization
Release Process Note
The fix is present on main and is staged for OpenClaw 2026.4.2. Publish this advisory after the 2026.4.2 npm release is live.
Thanks @iskindar for reporting, and thanks @wsparks-vc for coordination.
GitHub Advisory Database
Summary
Windows local-media handling accepted remote-host file URLs and UNC-style paths before local-path validation, so network-hosted file targets could be treated as local content.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected: < 2026.3.22
- Fixed: >= 2026.3.22
- Latest released tag checked:
v2026.3.23-2(630f1479c44f78484dfa21bb407cbe6f171dac87) - Latest published npm version checked:
2026.3.23-2
Fix Commit(s)
4fd7feb0fd4ec16c48ed983980dba79a09b3aaf593880717f1cd34feaa45e74e939b7a5256288901
Release Status
The fix shipped in v2026.3.22 and remains present in v2026.3.23 and v2026.3.23-2.
Code-Level Confirmation
- src/infra/local-file-access.ts now rejects remote-host file: URLs and UNC/network paths as non-local input.
- src/media/web-media.ts, src/media-understanding/attachments.normalize.ts, and src/agents/sandbox-paths.ts all route through the shared local-file guard.
OpenClaw thanks @RacerZ-fighting, @Fushuling for reporting.
NVD (es)
Las versiones de OpenClaw anteriores al commit b57b680 contienen una vulnerabilidad de omisión de aprobación debido a una normalización inconsistente de las variables de entorno entre las rutas de aprobación y ejecución, lo que permite a los atacantes inyectar variables de entorno controladas por el atacante en la ejecución sin la validación del sistema de aprobación. Los atacantes pueden explotar una lógica de normalización diferente para descartar claves no portátiles durante el procesamiento de aprobación mientras las aceptan en tiempo de ejecución, omitiendo la revisión del operador y potencialmente influyendo en el comportamiento en tiempo de ejecución, incluyendo la ejecución de binarios controlados por el atacante.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-34426 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-98ch-45wp-ch47 changed 2026-07-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-h3x4-hc5v-v2gm changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2026-34426 changed 2026-07-24 | Public domain |