CVE-2026-41915
JSON

5.8medium

OpenClaw < 2026.4.8 - Git Environment Variable Injection via Unfiltered Exec Environment

Severity
5.8medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.12% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-cm8v-2vh9-cxf3

Description

OpenClaw before 2026.4.8 fails to remove git plumbing environment variables from the execution environment before host exec operations. Attackers can exploit this by setting GIT_DIR and related variables to redirect git operations and compromise repository integrity.

Affected

Product or packageVersionsReported by
OpenClaw OpenClawbefore 2026.4.8
Not affected: 2026.4.8
CVE List, NVD
openclaw (npm)before 2026.4.8GitHub Advisory Database

All scores

VulnCheck5.8medium CVSS:4.0CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
VulnCheck5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
GitHub5.3low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
GitHublow CVSS:4.0CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N

Classification

CWE-78CWE-184

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

OpenClaw before 2026.4.8 fails to remove git plumbing environment variables from the execution environment before host exec operations. Attackers can exploit this by setting GIT_DIR and related variables to redirect git operations and compromise repository integrity.

GitHub Advisory Database

Impact

GIT_DIR and related git plumbing env vars missing from exec env denylist (GHSA-m866-6qv5-p2fg variant).

Git plumbing environment variables were not removed before host exec and could redirect Git operations.

OpenClaw is a user-controlled local assistant. This advisory is scoped to the OpenClaw trust model and does not assume a multi-tenant service boundary.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <=2026.3.30
  • Patched versions: 2026.4.8

Fix

The issue was fixed on main and is available in the patched npm version listed above. The verified fixed tree is commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5.

Verification

The fix was re-checked against main before publication, including targeted regression tests for the affected security boundary.

Credits

Thanks @boy-hack of Tencent zhuque Lab (https://github.com/Tencent/AI-Infra-Guard) for reporting.

NVD (es)

OpenClaw anterior a 2026.4.8 falla al eliminar las variables de entorno de fontanería de git del entorno de ejecución antes de las operaciones exec del host. Los atacantes pueden explotar esto al establecer GIT_DIR y variables relacionadas para redirigir las operaciones de git y comprometer la integridad del repositorio.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-41915 changed 2026-04-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-cm8v-2vh9-cxf3 changed 2026-05-06CC-BY-4.0
NVDCVE-2026-41915 changed 2026-11-11Public domain