CVE-2026-57856 漏洞深度分析

漏洞概述

CVE 编号: CVE-2026-57856
CVSS 评分: 8.7(HIGH)
CVSS 向量: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CWE 分类: CWE-22
漏洞状态: Received
发布时间: 2026-07-13T23:16:46.883
最后更新: 2026-07-14T13:18:59.003

漏洞描述

Cockpit CMS contains a path traversal vulnerability in the Bucket file storage API (/system/buckets/api). The api() method in modules/System/Controller/Buckets.php sanitizes the bucket name with preg_replace('/[^a-zA-Z0-9-_\.]/','', $bucket), which permits '..' and '../' sequences. The sanitized value is interpolated into a Flysystem path as uploads://buckets/{bucket}. Flysystem's WhitespacePathNormalizer resolves 'buckets/..' to the empty string (the uploads storage root) without raising PathTraversalDetected because the '..' has a preceding component to consume. An authenticated low-privileged user can send a crafted request with a '../' bucket name to list, upload, and delete files across all buckets, including those belonging to other users or roles

影响分析

此漏洞的具体影响取决于实际利用场景。"

修复建议

  1. 及时关注厂商发布的安全更新和补丁
  2. 升级受影响组件到最新版本
  3. 如无法立即升级,参考厂商提供的临时缓解措施
  4. 加强网络访问控制和监控

参考链接

  1. https://gist.github.com/sermikr0/821c4edd3c34e98a62a50b07707785bd
  2. https://github.com/Cockpit-HQ/Cockpit/commit/dde2d1d74f5f4e11de42a298918ea8c9684f932c
  3. https://github.com/cockpit-hq/cockpit
  4. https://www.vulncheck.com/advisories/cockpit-cms-missing-authorization-in-bucket-file-storage-api
  5. https://www.vulncheck.com/advisories/cockpit-cms-path-traversal-via-bucket-name-in-bucket-file-storage-api