Advisory details:
github_osv / GHSA-qhrr-grqp-6x2g
| Advisory ID | github_osv/GHSA-qhrr-grqp-6x2g |
| Aliases | |
| Summary | OpenClaw's tools.exec.safeBins trusted PATH directories allowed binary shadowing in allowlist mode ### Summary In `openclaw` allowlist mode, `tools.exec.safeBins` trusted PATH-derived directories for safe-bin resolution. A same-name binary placed in a trusted PATH directory could satisfy safe-bin checks and execute. ### Impact This is an allowlist bypass in exec policy that can lead to command execution in the OpenClaw runtime context when allowlist mode relies on safe bins and an attacker can influence trusted binary locations. ### Affected Packages / Versions - Package: `openclaw` (npm) - Vulnerable versions: `<= 2026.2.21-2` - Patched versions: `>= 2026.2.22` (planned next release) - Latest published npm version at triage time (2026-02-22): `2026.2.21-2` ### Root Cause - Safe-bin trust accepted PATH-derived directories instead of explicit trusted directories. - Safe-bin execution used shell command tokens that could resolve to shadowed binaries. ### Remediation - Stop trusting PATH-derived directories for safe-bin trust. - Add explicit `tools.exec.safeBinTrustedDirs` for opt-in extra trusted paths. - Pin safe-bin shell execution to resolved absolute executable paths. ### Fix Commit(s) - `64b273a71cf0b2f2419c974832cede1fc2158729` ### Release Process Note `patched_versions` is pre-set to the planned next release (`2026.2.22`). After npm release, this advisory is ready for publish without additional field edits. OpenClaw thanks @tdjackey for reporting. |
| Status | Published |
| Exploitability | 0.5 |
| Weighted Severity | 6.2 |
| Risk | 3.1 |
| Affected and Fixed Packages | Package Details |
| Introduced and Fixed Package Commit Patches | Package Commit Patches Details |
| CWE-426 | Untrusted Search Path |
| System | Score | Found at |
|---|---|---|
| cvssv4 | 6.9 | https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-qhrr-grqp-6x2g/GHSA-qhrr-grqp-6x2g.json |
| generic_textual | MODERATE |
No EPSS data available for this advisory.
| Patch URL | |
|---|---|
| There are no known patches. | |
| Attack Vector (AV) | Attack Complexity (AC) | Attack Requirements (AT) | Privileges Required (PR) | User Interaction (UI) | Vulnerable System Impact Confidentiality (VC) | Vulnerable System Impact Integrity (VI) | Vulnerable System Impact Availability (VA) | Subsequent System Impact Confidentiality (SC) | Subsequent System Impact Integrity (SI) | Subsequent System Impact Availability (SA) |
|---|---|---|---|---|---|---|---|---|---|---|
network adjacent local physical |
low high |
none present |
none low high |
none passive active |
high low none |
high low none |
high low none |
high low none |
high low none |
high low none |
There are no SSVC decisions available.