CVE-2026-31990
OpenClaw: stageSandboxMedia destination symlink traversal can overwrite files outside sandbox workspace
描述
### Summary `stageSandboxMedia` allowed destination symlink traversal during media staging, which could overwrite files outside the sandbox workspace root. ### Impact When sandbox media staging handled inbound files, destination writes under `media/inbound` were not destination-alias-safe. If a symlink existed in that destination path, the write could follow it and overwrite host files outside the intended sandbox workspace boundary. ### Affected Packages / Versions - Package: `openclaw` (npm) - Latest published version checked: `2026.3.1` - Affected: `<= 2026.3.1` - Patched versions: `>= 2026.3.2` (released) ### Root Cause `stageSandboxMedia` validated source paths but wrote destination files with a direct copy path that did not enforce destination boundary/alias checks. ### Remediation The fix routes staging writes through root-scoped safe write primitives for both local and SCP-staged attachments, preventing destination symlink traversal escapes. ### Fix Commit(s) - `17ede52a4be3034f6ec4b883ac6b81ad0101558a`
如何修補 CVE-2026-31990
要修補 CVE-2026-31990,請將受影響套件升級到下列已修補版本。
- —升級至 2026.3.2 或更新版本
CVE-2026-31990 正在被利用嗎?
低 — EPSS 為 0.1%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- from 0, < 2026.3.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:N |