mcp-cve-project

CVE-2026-44995 | OpenClaw MCP stdio dangerous environment variables (code execution) | Medium |

CVE Information

Field Value
CVE / NVD CVE-2026-44995
Date (index) 2026-05-11
Affected product (index) OpenClaw
GHSA ID GHSA-p3m6-jr2h-hhxj
OWASP MCP Top 10 (2025) MCP05 — Command Injection & Execution
Published / disclosed 2026-05-11
Ecosystem Application / upstream project
Component OpenClaw
EPSS score 0.001360000 (FIRST EPSS, 2026-06-30)
CVSS score Medium — 5.4 — CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X (NVD CVSS 4.0)
CWE CWE-829
Affected versions OpenClaw before 2026.4.20 (per NVD)
Fixed versions 2026.4.20 and later (per NVD)
Fix status Patched
Exploit status Public CVE record
Notes Details below are aligned to the English NVD description at indexing time; re-check NVD for CNA updates.

CVE Breakdown


What is the vulnerability?

OpenClaw before 2026.4.20 contains an improper environment variable validation vulnerability in MCP stdio server configuration that allows attackers to execute arbitrary code. Malicious workspace configurations can pass dangerous startup variables like NODE_OPTIONS, LD_PRELOAD, or BASH_ENV to spawned MCP server processes, enabling code injection when operators start sessions using those servers.

Attack prerequisites / exposure

Depends on deployment: many MCP issues require a reachable HTTP/SSE listener, a malicious remote MCP server, a poisoned project/workspace config, or a victim opening attacker-influenced content. Treat developer workstations and shared CI runners as high-value targets when MCP servers run with host access.

CVE is because of what bug?

See the NVD description and linked references for the upstream root cause; CWE rows above summarize the weakness mapping published by NVD.

MCP-specific impact / why it matters

MCP extends an agent’s reach into tools, hosts, and cloud APIs. Failures in transport authentication, logging, URL validation, session binding, or local config loading frequently become RCE, credential theft, SSRF, or session hijacking in MCP-shaped deployments.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here after reviewing the linked upstream commit / tag diff (do not paste weaponized payloads).

Fix / Remediation

Upgrade to vendor-fixed versions where available, reduce network exposure (bind to localhost, require auth on HTTP transports), and apply standard MCP deployment hygiene (tool allowlists, egress controls, separate secrets from logs).

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.

Detection / verification

Patch

https://github.com/openclaw/openclaw/commit/62fa5071896e95edc7f67d1cebc70a2859e283af