Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. openclaw
  4. ›
  5. GHSA-f8mp-vj46-cq8v

GHSA-f8mp-vj46-cq8v: OpenClaw's shell env fallback trusts unvalidated SHELL path from host environment

March 3, 2026

The shell environment fallback path could invoke an attacker-controlled shell when SHELL was inherited from an untrusted host environment. In affected builds, shell-env loading used $SHELL -l -c 'env -0' without validating that SHELL points to a trusted executable.

In threat-model terms, this requires local environment compromise or untrusted startup environment injection first; it is not a remote pre-auth path. The hardening patch validates SHELL as an absolute normalized executable, prefers /etc/shells, applies trusted-prefix fallback checks, and falls back safely to /bin/sh when validation fails. The dangerous env-var policy now also blocks SHELL overrides.

References

  • github.com/advisories/GHSA-f8mp-vj46-cq8v
  • github.com/openclaw/openclaw
  • github.com/openclaw/openclaw/commit/25e89cc86338ef475d26be043aa541dfdb95e52a
  • github.com/openclaw/openclaw/security/advisories/GHSA-f8mp-vj46-cq8v

Code Behaviors & Features

Detect and mitigate GHSA-f8mp-vj46-cq8v with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2026.2.22

Fixed versions

  • 2026.2.22

Solution

Upgrade to version 2026.2.22 or above.

Impact 4.5 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-426: Untrusted Search Path
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/openclaw/GHSA-f8mp-vj46-cq8v.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:24 +0000.