CVE-2026-57856: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Cockpit HQ Cockpit CMS
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
AI Analysis
Technical Summary
The vulnerability in Cockpit CMS (CVE-2026-57856) is a path traversal issue in the Bucket file storage API endpoint (/system/buckets/api). The api() method sanitizes bucket names using a regex that removes characters except letters, digits, hyphens, underscores, backslashes, and dots, but it does not prevent '..' or '../' sequences. These sequences are interpreted by Flysystem's WhitespacePathNormalizer to traverse directories, effectively allowing an attacker with low privileges to access and manipulate files outside their authorized buckets. This enables unauthorized file listing, uploading, and deletion across all buckets.
Potential Impact
An authenticated user with low privileges can exploit this vulnerability to access, upload, and delete files in any bucket, including those belonging to other users or roles. This compromises data confidentiality, integrity, and availability within the Cockpit CMS file storage system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the Bucket file storage API to trusted users only and monitor for suspicious activity related to bucket name parameters. Avoid using untrusted input in bucket names without proper validation that disallows directory traversal sequences.
CVE-2026-57856: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Cockpit HQ Cockpit CMS
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
CVSS v4.0
Score 8.7high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Cockpit CMS (CVE-2026-57856) is a path traversal issue in the Bucket file storage API endpoint (/system/buckets/api). The api() method sanitizes bucket names using a regex that removes characters except letters, digits, hyphens, underscores, backslashes, and dots, but it does not prevent '..' or '../' sequences. These sequences are interpreted by Flysystem's WhitespacePathNormalizer to traverse directories, effectively allowing an attacker with low privileges to access and manipulate files outside their authorized buckets. This enables unauthorized file listing, uploading, and deletion across all buckets.
Potential Impact
An authenticated user with low privileges can exploit this vulnerability to access, upload, and delete files in any bucket, including those belonging to other users or roles. This compromises data confidentiality, integrity, and availability within the Cockpit CMS file storage system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the Bucket file storage API to trusted users only and monitor for suspicious activity related to bucket name parameters. Avoid using untrusted input in bucket names without proper validation that disallows directory traversal sequences.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-25T18:48:00.282Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a556b3468715ace43025793
Added to database: 07/13/2026, 22:48:20 UTC
Last enriched: 07/21/2026, 19:33:19 UTC
Last updated: 08/27/2026, 10:52:10 UTC
Views: 101
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.