GHSA-f8mp-vj46-cq8v

Suggest an improvement
Source
https://github.com/advisories/GHSA-f8mp-vj46-cq8v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-f8mp-vj46-cq8v/GHSA-f8mp-vj46-cq8v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f8mp-vj46-cq8v
Aliases
Downstream
Published
2026-03-03T19:52:45Z
Modified
2026-03-25T19:48:25.268923Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 7.3 (High) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
OpenClaw's shell env fallback trusts unvalidated SHELL path from host environment
Details

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.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.2.21-2
  • Latest published vulnerable version: 2026.2.21-2
  • Patched versions (planned next release): >= 2026.2.22

Fix Commit(s)

  • 25e89cc86338ef475d26be043aa541dfdb95e52a

Release Process Note

The advisory pre-sets patched_versions to the planned next release (2026.2.22). After that npm release is published, maintainers can publish this advisory without further version-field edits.

OpenClaw thanks @athuljayaram for reporting.

Database specific
{
    "github_reviewed_at": "2026-03-03T19:52:45Z",
    "nvd_published_at": "2026-03-19T22:16:38Z",
    "cwe_ids": [
        "CWE-426",
        "CWE-78"
    ],
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

npm / openclaw

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2026.2.22

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-f8mp-vj46-cq8v/GHSA-f8mp-vj46-cq8v.json"