Openclaw cli: OpenClaw: stageSandboxMedia destination symlink traversal can overwrite files outside sandbox workspace (CVE-2026-31990)
Description
The OpenClaw CLI contained a vulnerability in the stageSandboxMedia function that allowed destination symlink traversal during media staging. This flaw could enable overwriting files outside the intended sandbox workspace by following symlinks in the destination path. The issue affected openclaw versions up to 2026.3.1 and was fixed in version 2026.3.2 by enforcing safe write primitives that prevent symlink traversal escapes.
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
The stageSandboxMedia function in openclaw-cli did not enforce destination boundary or alias checks when writing staged media files, allowing writes to follow symlinks in the destination path under media/inbound. This could lead to overwriting files outside the sandbox workspace root. The vulnerability affects openclaw versions <= 2026.3.1 and was patched in 2026.3.2 by routing staging writes through root-scoped safe write primitives for both local and SCP-staged attachments, preventing symlink traversal.
Potential Impact
An attacker able to stage media files could exploit symlink traversal to overwrite arbitrary files outside the sandbox workspace, potentially leading to unauthorized file modification on the host system. This breaks sandbox isolation and could compromise system integrity.
Mitigation Recommendations
A patch is available and has been released in openclaw version 2026.3.2. Users should upgrade to version 2026.3.2 or later to mitigate this vulnerability. The fix ensures all staging writes are performed through safe write primitives that prevent destination symlink traversal.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-31990
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6ac245c412601ec6a31670b1
Added to database: 10/04/2026, 12:25:40 UTC
Last enriched: 10/04/2026, 13:07:13 UTC
Last updated: 10/04/2026, 16:08:37 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.
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.