# CVE-2026-57856: Cockpit CMS Path Traversal via Bucket Name in Bucket File Storage API

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-13T22:41:23.183Z
- Modified: 2026-10-24T22:10:00.210Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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

(As written by CVE List.)

## Affected

- Cockpit HQ Cockpit CMS: before 2.14.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://gist.github.com/sermikr0/821c4edd3c34e98a62a50b07707785bd> (exploit, technical-description)
- <https://github.com/cockpit-hq/cockpit> (product)
- <https://github.com/Cockpit-HQ/Cockpit/commit/dde2d1d74f5f4e11de42a298918ea8c9684f932c> (patch)
- <https://www.vulncheck.com/advisories/cockpit-cms-missing-authorization-in-bucket-file-storage-api> (third-party-advisory)
- <https://www.vulncheck.com/advisories/cockpit-cms-path-traversal-via-bucket-name-in-bucket-file-storage-api> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-57856](https://www.cve.org/CVERecord?id=CVE-2026-57856), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2026-57856](https://nvd.nist.gov/vuln/detail/CVE-2026-57856), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-57856 · Whole record: https://cve.day/CVE-2026-57856.json · Rebuilt by cve.day 2026-11-25T22:59:27.863Z
