Cockpit CMS
CVE-2026-57856
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged user
-
DeliveryCraft request to /system/buckets/api with '../' bucket name
-
ExploitBypass sanitizer, resolve path to uploads root
-
ExecutionList, upload, and delete cross-bucket files
-
ImpactCompromise data of other users and roles
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a valid authenticated Cockpit CMS account with at least low privileges granting access to the Bucket file storage API endpoint (/system/buckets/api) - consistent with PR:L in the CVSS vector; unauthenticated exploitation is not indicated. The specific trigger is supplying a bucket-name parameter containing '..' or '../' (e.g., 'buckets/..') that survives the preg_replace sanitizer and is resolved by Flysystem's WhitespacePathNormalizer to the uploads storage root. Exploitation is limited by the need for any authenticated account and by the affected version window (prior to 2.14.0); no user interaction, no special platform, and no non-default configuration is required, and the uploads:// Flysystem backend is the standard bucket storage. The practical exposure depends on how many untrusted or cross-tenant users hold Cockpit accounts. |
| Impact | The vendor-assigned CVSS 4.0 score is 8.7 (High) with vector AV:N/AC:L/AT:N/PR:L/UI:N and high vulnerable-system confidentiality, integrity, and availability impact - meaning network-reachable, low-complexity, no user interaction, but requiring an authenticated low-privileged account (PR:L). That authentication requirement is the single most important limiting factor: this is not remote-unauthenticated, so realistic risk depends on how freely accounts are provisioned (e.g., multi-tenant or self-registration deployments raise exposure sharply). No EPSS score, KEV listing, or SSVC decision data was provided, so exploitation-probability and automatability signals are unavailable and cannot be asserted. A POC gist is referenced but its working status is unverified. Overall this is a credible, patch-worthy privilege-escalation/data-integrity issue rather than a mass-exploitation network worm - priority should scale with whether untrusted or shared-tenant users hold Cockpit accounts. |
| Exploit ScenarioDerived | A low-privileged authenticated user (for example, an editor limited to their own bucket in a multi-tenant Cockpit deployment) sends a crafted request to /system/buckets/api with a bucket name like '../' or 'buckets/..'. The sanitizer leaves the traversal intact, Flysystem resolves the path to the uploads root, and the attacker lists, downloads, overwrites, or deletes files belonging to every other bucket and role. A proof-of-concept gist is referenced, though its functional status is unverified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 13, 2026
Path-traversal privilege escalation in Cockpit CMS Bucket file storage API (before 2.14.0) lets an authenticated low-privileged user bypass per-bucket isolation by supplying a '../' bucket name, granting cross-bucket read, upload, and delete over all files regardless of owner or role. The flaw stems from an incomplete sanitization regex that strips dangerous characters but preserves dot sequences, which Flysystem then normalizes down to the storage root. No public exploit is identified at time of analysis, though a proof-of-concept gist is referenced; the issue was reported by VulnCheck and a vendor patch is available.
RemediationAI
Vendor-released patch: upgrade to Cockpit CMS 2.14.0 or later (fix commit dde2d1d74f5f4e11de42a298918ea8c9684f932c, released 2026-03-30). If immediate upgrade is not possible, apply the upstream fix by correcting bucket-name validation in modules/System/Controller/Buckets.php so dot sequences are rejected - replace the permissive preg_replace denylist with an allowlist that forbids '.' or explicitly blocks '..' before the value reaches the Flysystem path. As a compensating control, restrict access to the /system/buckets/api endpoint at the reverse proxy or application ACL layer to trusted administrators only, and audit/tighten account provisioning so low-privileged or self-registered users cannot reach the Bucket API (trade-off: may break legitimate bucket workflows for non-admin roles). Review upload storage for unauthorized file changes or deletions predating the patch. Reference the VulnCheck advisory (https://www.vulncheck.com/advisories/cockpit-cms-path-traversal-via-bucket-name-in-bucket-file-storage-api).
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability lives in the api() method of modules/System/Controller/Buckets.php. Bucket names are sanitized with preg_replace('/[^a-zA-Z0-9-_\.]/','', $bucket), a denylist that explicitly permits the dot character, so '..' and '../' survive sanitization. The value is interpolated into a Flysystem virtual path 'uploads://buckets/{bucket}'. Because Flysystem's WhitespacePathNormalizer only raises PathTraversalDetected when a '..' has no preceding path component to consume, 'buckets/..' collapses to the empty string - the uploads storage root - silently. This is a textbook CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) where a broken input filter combines with a normalization edge case. Affected product per CPE is cpe:2.3:a:cockpit_hq:cockpit_cms across all versions prior to the fix; Cockpit CMS is a PHP-based headless/API-first content management system.
Know when Cockpit Cms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network API reachable with low-complexity '../' payload; requires an authenticated low-privileged account (PR:L); traversal enables cross-bucket read, write, and delete so C/I/A all High; scope unchanged within the app's own storage.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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
Executive ViewAI
Cockpit CMS versions before 2.14.0 contain a privilege escalation vulnerability that allows authenticated users to access and modify files across all storage buckets regardless of their assigned permissions. Organizations using Cockpit CMS should prioritize patching to prevent data loss and unauthorized access from compromised or malicious user accounts.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)CVE.org
More in Cockpit Cms
View allAuthenticated remote code execution in Cockpit CMS lets attackers holding collection-management privileges inject arbitr
Unauthenticated remote file and directory exposure in agentejo Cockpit CMS 0.12.2 and earlier allows attackers to access
Unrestricted file upload in Cockpit CMS versions up to and including 2.6.0 allows any authenticated user to upload PHP s
Broken access control in Cockpit CMS's Bucket file storage API (/system/buckets/api) lets any authenticated user, regard
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB