Openclaw cli: OpenClaw: Zip extraction symlink traversal could write outside destination
Description
A path traversal vulnerability in the OpenClaw CLI ZIP extraction logic allowed writes outside the intended extraction directory when a pre-existing symlink was present in the destination path. This could lead to arbitrary file writes outside the extraction root. The issue affects openclaw versions up to and including 2026.2.21-2 and is fixed in version 2026.2.22. The vulnerability requires attacker-controlled archive extraction and a pre-existing symlink in the destination path.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenClaw CLI's ZIP extraction logic had a path confinement bypass vulnerability due to lexical output-path checks that did not prevent traversal through existing symlinks in the destination path. This allowed an attacker to write files outside the intended extraction root if a symlink was pre-seeded in the extraction destination. The fix involves rejecting symlink traversal in destination path segments, validating that resolved paths remain inside the extraction root, using no-follow file opens where supported, and adding regression tests to prevent recurrence.
Potential Impact
An attacker able to supply a ZIP archive for extraction and with a pre-existing symlink in the extraction destination path could cause arbitrary file writes outside the intended extraction directory. This could lead to overwriting or creating files in unintended locations, potentially impacting system integrity or security.
Mitigation Recommendations
A patch is available in openclaw version 2026.2.22 that addresses this vulnerability by blocking symlink traversal during ZIP extraction and enforcing path confinement. Users should upgrade to version 2026.2.22 or later to remediate this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-GHSA-jxrq-8fm4-9p58
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6ac2458312601ec6a3164078
Added to database: 10/04/2026, 12:24:35 UTC
Last enriched: 10/04/2026, 12:30:20 UTC
Last updated: 10/04/2026, 12:30:20 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.