OpenClaw's TOCTOU symlink race in writeFileWithinRoot could create or truncate files outside root boundaries
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
### Summary A symlink-retarget TOCTOU race in `writeFileWithinRoot` could point an attacker-controlled path alias outside the configured root between resolution and write operations. ### Impact Affected versions could cause out-of-root write side effects (including file creation or truncation) before final boundary validation. ### Fix Root-scoped write flow now opens existing files without pre-truncation, creates missing files with exclusive create semantics, truncates only after post-open identity/boundary checks, and removes out-of-root artifacts when a race is detected. ### Affected and Patched Versions - Affected: `<= 2026.2.26` - Patched: `2026.3.1`
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | openclaw (npm) | before 2026.3.1 | 2026.3.1 | Patch available | GHSA-x82f-27x3-q89c |
- openclaw (npm) Vendor— Affected before 2026.3.1 Fixed in 2026.3.1 Patch available GHSA-x82f-27x3-q89c
Remediation
- Fix · GHSA-x82f-27x3-q89c openclaw (npm) Fixed in 2026.3.1 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-x82f-27x3-q89c
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences