Security mailing lists by PureSourceCode

CVE-2026-22217

MEDIUM 5.8CVSS 4.0

OpenClaw: shell-env trusted-prefix fallback allowed attacker-controlled binary execution via $SHELL

OpenClaw version 2026.2.22 prior to 2026.2.23 contains an arbitrary code execution vulnerability in shell-env that allows attackers to execute attacker-controlled binaries by exploiting trusted-prefix fallback logic for the $SHELL variable. An attacker can influence the $SHELL environment variable on systems with writable trusted-prefix directories such as /opt/homebrew/bin to execute arbitrary binaries in the OpenClaw process context.

Published
18 Mar 2026
Last modified
17 Jun 2026
Assigned by
disclosure@vulncheck.com
NVD status
Modified
Weakness
CWE-184CWE-829
Also known as
GHSA-p4wh-cr8m-gm6c
Sources
NVDJSONOSV GHSA-p4wh-cr8m-gm6cJSON

Scores

SourceScored byVersionScoreVector / decision
NVD disclosure@vulncheck.com (Secondary) CVSS 4.0 MEDIUM 5.8 CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/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
OSV GitHub CVSS 4.0 CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Secondary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD disclosure@vulncheck.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD openclaw openclaw
cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*
>= 2026.2.22, < 2026.2.23 2026.2.23
OSV npm openclaw >= 2026.2.22, < 2026.2.23 2026.2.23

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 18 Mar 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.