Skip to content
Heist/ feed
Back to feed
Medium

OpenClaw < 2026.4.20 - Arbitrary Code Execution via MCP stdio Environment Variables

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-44995
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 19:08 UTC · Revision 1

Source evidence

OpenClaw < 2026.4.20 - Arbitrary Code Execution via MCP stdio Environment Variables

core-osv · Original source

Published 11 May 2026, 16:46 UTC

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.

osv:CVE-2026-44995
Complete source record
{
  "id": "4ad353e5d9fbe26601954eb7b921536f2b468507384d3c3f22525ac691c807f9",
  "url": "https://osv.dev/vulnerability/CVE-2026-44995",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "OpenClaw < 2026.4.20 - Arbitrary Code Execution via MCP stdio Environment Variables",
    "summary": "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.",
    "evidence": "osv:CVE-2026-44995",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-44995",
      "aliases": [
        "CVE-2026-44995",
        "GHSA-mj59-h3q9-ghfh"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openclaw/openclaw",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "115f05d5952adeaa8043311c24c4b8a3803481ba"
                },
                {
                  "fixed": "62fa5071896e95edc7f67d1cebc70a2859e283af"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2026.4.20"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "62fa5071896e95edc7f67d1cebc70a2859e283af"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2026.4.19-beta.2",
            "v2026.4.19-beta.1",
            "v2026.4.15",
            "v2026.4.15-beta.2",
            "v2026.4.15-beta.1",
            "v2026.4.14",
            "v2026.4.14-beta.1",
            "v2026.4.12",
            "v2026.4.12-beta.1",
            "v2026.4.11",
            "v2026.4.11-beta.1",
            "v2026.4.10",
            "v2026.4.9",
            "v2026.4.9-beta.1",
            "v2026.4.8",
            "v2026.4.7-1",
            "v2026.4.7",
            "v2026.4.5",
            "v2026.4.2",
            "v2026.4.1",
            "v2026.4.1-beta.1",
            "v2026.3.31",
            "v2026.3.31-beta.1",
            "v2026.3.28",
            "v2026.3.28-beta.1",
            "v2026.3.24",
            "v2026.3.24-beta.2",
            "v2026.3.24-beta.1",
            "v2026.3.23-2",
            "v2026.3.23",
            "v2026.3.23-beta.1",
            "v2026.3.22",
            "v2026.3.22-beta.1",
            "v2026.3.13-1",
            "v2026.3.13",
            "v2026.3.12",
            "v2026.3.11",
            "v2026.3.11-beta.1",
            "v2026.3.8",
            "v2026.3.8-beta.1",
            "v2026.3.7",
            "v2026.3.7-beta.1",
            "v2026.3.2-beta.1",
            "v2026.3.2",
            "v2026.3.1",
            "v2026.2.26",
            "v2026.2.26-beta.1",
            "v2026.2.25",
            "v2026.2.25-beta.1",
            "v2026.2.24",
            "v2026.2.24-beta.1",
            "v2026.2.23",
            "v2026.2.23-beta.1",
            "v2026.2.22",
            "v2026.2.22-beta.1",
            "v2026.2.21",
            "v2026.2.21-beta.1",
            "v2026.2.19-beta.1",
            "v2026.2.19",
            "v2026.2.17",
            "v2026.2.15-beta.1",
            "v2026.2.14",
            "v2026.2.13",
            "v2026.2.12",
            "v2026.2.9",
            "v2026.2.6-3",
            "v2026.2.6-2",
            "v2026.2.6-1",
            "v2026.2.6",
            "v2026.2.3",
            "v2026.2.2",
            "v2026.2.1",
            "v2026.1.30",
            "v2026.1.29",
            "v2026.1.24-1",
            "v2026.1.24",
            "v2026.1.23",
            "v2026.1.22",
            "v2026.1.21",
            "v2026.1.20",
            "v2026.1.16-2",
            "v2026.1.15",
            "v2026.1.14-1",
            "v2026.1.13",
            "v2026.1.12-2",
            "v2026.1.12",
            "v2026.1.11-3",
            "v2026.1.11-2",
            "v2026.1.11-1",
            "v2026.1.11",
            "v2026.1.10",
            "v2026.1.9",
            "v2026.1.8",
            "v2026.1.5-3",
            "v2026.1.5-2",
            "v2026.1.5-1",
            "v2026.1.5",
            "v2.0.0-beta5",
            "v2.0.0-beta4",
            "v2.0.0-beta3",
            "v2.0.0-beta2",
            "v2.0.0-beta1",
            "v1.3.0",
            "v1.2.2",
            "v1.2.1",
            "v1.2.0",
            "v1.1.0",
            "v1.0.4",
            "v0.1.3",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-44995.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.087972814Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44995.json",
        "https://github.com/openclaw/openclaw/security/advisories/GHSA-mj59-h3q9-ghfh",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-44995",
        "https://www.vulncheck.com/advisories/openclaw-arbitrary-code-execution-via-mcp-stdio-environment-variables",
        "https://github.com/openclaw/openclaw/commit/62fa5071896e95edc7f67d1cebc70a2859e283af",
        "https://github.com/openclaw/openclaw/commit/85d86ebc4bf3d2226d39d132a484f4f7a299fa1b"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-829"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44995.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-44995",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 515945,
  "published_at": "2026-05-11T16:46:35.083+00:00"
}