9.9critical
OpenClaw's tools.exec.safeBins sort long-option abbreviation bypass can skip exec approval in allowlist mode
- Severity
- 9.9critical CVSS:3.1 by mitre
- Exploit likelihood
- 0.54% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-3c6h-g97w-fg78GHSA-7977-c43c-xpwj
Description
In OpenClaw before 2026.2.23, tools.exec.safeBins validation for sort could be bypassed via GNU long-option abbreviations (such as --compress-prog) in allowlist mode, leading to approval-free execution paths that were intended to require approval. Only an exact string such as --compress-program was denied.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| OpenClaw OpenClaw | before 2026.2.23 | CVE List, NVD |
| openclaw (npm) | before 2026.2.23 | GitHub Advisory Database |
All scores
| mitre | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/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 |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
In OpenClaw before 2026.2.23, tools.exec.safeBins validation for sort could be bypassed via GNU long-option abbreviations (such as --compress-prog) in allowlist mode, leading to approval-free execution paths that were intended to require approval. Only an exact string such as --compress-program was denied.
GitHub Advisory Database
Summary
In OpenClaw, tools.exec.safeBins validation for sort could be bypassed via GNU long-option abbreviations in allowlist mode, allowing approval-free execution paths that should require approval.
Affected Packages / Versions
- Ecosystem: npm
- Package:
openclaw - Latest published version checked:
2026.2.22-2 - Affected range:
<= 2026.2.22-2 - Fixed version:
2026.2.23
Impact
When all of the following are true:
tools.exec.security=allowlisttools.exec.ask=on-misstools.exec.safeBinsincludessort
abbreviated GNU long options (for example --compress-prog) could bypass denied-flag checks and be treated as allowlist-satisfied safe-bin usage, skipping approval.
Root Cause
Long-option handling matched denied flags by exact string and accepted unknown long options with inline values instead of failing closed.
Fix Commit(s)
3b8e33037ae2e12af7beb56fcf0346f1f8cbde6f
Release Process Note
patched_versions is pre-set to the released version (2026.2.23). This advisory now reflects released fix version 2026.2.23.
OpenClaw thanks @tdjackey for reporting.
NVD (es)
En OpenClaw antes de 2026.2.23, la validación de tools.exec.safeBins para sort podría ser eludida a través de abreviaturas de opciones largas de GNU (como --compress-prog) en modo de lista de permitidos, lo que llevaba a rutas de ejecución sin aprobación que estaban destinadas a requerir aprobación. Solo una cadena exacta como --compress-program era denegada.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-28363 changed 2026-02-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3c6h-g97w-fg78 changed 2026-03-13 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-7977-c43c-xpwj changed 2026-03-16 | CC-BY-4.0 |
| NVD | CVE-2026-28363 changed 2026-06-17 | Public domain |