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

Published Jul 13, 2026
·
Updated

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 pregreplace('/[^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

Affected Software

1 affected component
Cockpit CMS Cockpit CMS

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Update modules/System/Controller/Buckets.php so that the bucket name used in Flysystem path interpolation does not allow path traversal; specifically do not permit '..' or '../' (current preg_replace('/[^a-zA-Z0-9-_\.]/','', $bucket) permits these sequences, leading to uploads://buckets/{bucket} resolving to the uploads storage root).

    Cockpit CMS Bucket file storage API (modules/System/Controller/Buckets.php / system buckets API) Bucket name sanitization = Reject bucket names containing path traversal sequences ('..' or '../')

Event History

Jul 13, 2026
CVE Published
via MITRE·10:41 PM
Data Sourced
via MITRE·10:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-57856?

CVE-2026-57856 has a high severity rating of 8.8.

2

What is the risk associated with CVE-2026-57856?

The risk associated with CVE-2026-57856 is classified as 79.

3

How do I fix CVE-2026-57856?

To mitigate CVE-2026-57856, ensure proper sanitization of bucket names to block path traversal sequences.

4

What component is affected by CVE-2026-57856?

CVE-2026-57856 affects the Bucket file storage API in Cockpit CMS.

5

What type of vulnerability is CVE-2026-57856?

CVE-2026-57856 is classified as a Path Traversal vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203