CVE-2026-28483: OpenClaw: ZIP extraction race could write outside destination via parent symlink rebind
OpenClaw 2026.3.1 and earlier have a race in ZIP extraction. A local attacker can swap a parent directory for a symlink between path validation and the file write, so extracted data lands outside the destination directory. Upgrade `openclaw` to 2026.3.2.
Published Mar 3, 2026 · Updated Mar 23, 2026 · Analysis Oct 31, 2026
What an attacker can do
In src/infra/archive.ts, ZIP extraction first validated each output path. It then opened and truncated the destination in a separate step. Between those two steps, a process that can modify the filesystem can rebind a parent directory of the target to a symlink, and the final write follows it out of the extraction root (CWE-59, CWE-367).
The advisory calls the race local. The attacker needs to run code, or control files, on the same machine in a place the extraction touches, and needs a ZIP archive to be extracted. The CVSS 4.0 vector in the data shows network access and high integrity impact, which differs from the advisory's own wording of a local race. I did not find a source that explains that gap.
The effect is an arbitrary write, and the truncate step means an existing file can be emptied as well. Overwriting config, scripts or startup files in locations the OpenClaw user can write can lead to code execution. The risk is highest on shared hosts and in sandboxes or CI runners where another user or process shares the extraction directory.
Who is affected
The openclaw npm package up to and including 2026.3.1 (the latest published vulnerable version confirmed on 2026-03-02). Check with:
npm ls -g openclawAny feature that extracts ZIP archives through src/infra/archive.ts is in scope.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.1
- Fixed in
- 2026.3.2
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.2:
npm install -g [email protected]The fix commit is 7dac9b05dd9d38dd3929637f26fa356fd8bdd107. ZIP writes are now bound to the identity of the opened file handle, the pre-write truncate path is gone, and a shared file-descriptor realpath check in src/infra/fs-safe.ts verifies the final location. The advisory lists no workaround.
How to tell if you were hit
After an extraction, look for files that appeared outside the destination root, and for symlinks that replaced directories inside it. Review file-system audit logs for rapid create-and-replace of directories under extraction paths. The advisory gives no log line and no sign of exploitation.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
ZIP extraction in OpenClaw could be raced into writing outside the intended destination directory via parent-directory symlink rebind between validation and write.
Affected Packages / Versions
- Package:
openclaw(npm) - Vulnerable versions:
<= 2026.3.1 - Latest published vulnerable version confirmed:
2026.3.1(npm as of 2026-03-02) - Patched version:
2026.3.2(released)
Technical Details
In src/infra/archive.ts, ZIP extraction previously validated output paths, then later opened/truncated the destination path in a separate step. A local race on parent-directory symlink state could redirect the final write outside the extraction root.
The fix hardens ZIP writes by binding writes to the opened file handle identity and avoiding the pre-write truncate race path, with shared fd realpath verification in src/infra/fs-safe.ts and regression coverage in src/infra/archive.test.ts.
Fix Commit(s)
7dac9b05dd9d38dd3929637f26fa356fd8bdd107
Credited to tdjackey.
Questions
- What is the race in CVE-2026-28483?
A time-of-check, time-of-use gap. The path is validated first, and the file is opened and truncated afterwards. A parent symlink swapped in between redirects the write.
- Which OpenClaw release fixes it?
2026.3.2. The advisory lists 2026.3.1 and earlier as vulnerable.
- How does the fix remove the race?
It binds the write to the identity of the opened file handle, avoids the pre-write truncate, and re-checks the real path from the file descriptor.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
