Description
OpenClaw versions prior to 2026.2.21 contain a stdin-only policy bypass vulnerability in the grep tool within tools.exec.safeBins that allows attackers to read arbitrary files by supplying a pattern via the -e flag parameter. Attackers can include a positional filename operand to bypass file access restrictions and read sensitive files.env from the working directory.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OpenClaw | OpenClaw | < 2026.2.21 | 2026.2.21 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | openclaw | < 2026.2.21 | 2026.2.21 | GHSA-3xfw-4pmr-4xc5 |
Advisories 1
- WID-SEC-2026-0472 OpenClaw: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 12, 2026
References
- GitHub Security Advisory (GHSA-3xfw-4pmr-4xc5) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: OpenClaw < 2026.2.21 - Arbitrary File Read via grep -e Flag Policy Bypass third-party-advisory