CVE-2026-38993

Cockpit: Cockpit: Arbitrary file write via directory traversal in Buckets component

Published Apr 29, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Cockpit 2.13.5 and earlier is vulnerable to directory traversal via the Buckets component. This vulnerability allows authenticated attackers to write files to arbitrary locations within the uploads directory or overwrite assets with malicious versions.

Analysis

AI-generated

Technical impact

Cockpit CMS 2.13.5 and earlier contain a directory traversal flaw in the Buckets component that lets an authenticated user supply a path that resolves outside the intended uploads directory. This permits the creation or overwrite of arbitrary files within the application’s upload area, enabling malicious asset injection or replacement of legitimate files.

Affected Systems

The vulnerability affects Cockpit CMS version 2.13.5 and all earlier releases. Only users who can authenticate to the CMS can exploit the flaw.

Risk and Exploitability

The flaw requires authenticated access, so its exploitation requires that attackers obtain (or already possess) legitimate credentials. While no public EPSS score is available, the lack of a CISA KEV listing suggests no widespread exploitation has been documented. The potential impact includes site compromise through malicious asset injection, and remediation is available in release 2.14.0. The attack vector is most likely local path manipulation within the Buckets upload handling code. The CVSS score of 6.5 indicates a medium severity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Cockpit CMS to version 2.14.0 or later.
  • If an immediate upgrade is not possible, restrict write access to the uploads directory by configuring file system permissions and disabling write operations through the Buckets component for non‑trusted users.
  • Implement strict path validation and sanitization in the Buckets upload handling code to mitigate the directory traversal flaw (CWE‑22).

Generated by OpenCVE AI on April 30, 2026 at 14:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p46p-7pmj-m34f Cockpit is vulnerable to directory traversal
History
Type Values Removed Values Added
Title Cockpit: Cockpit: Arbitrary file write via directory traversal in Buckets component
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Title Directory Traversal in Cockpit CMS Buckets Allows Unauthorized File Write
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cockpit-hq
Cockpit-hq cockpit
Vendors & Products Cockpit-hq
Cockpit-hq cockpit
Type Values Removed Values Added
Title Directory Traversal in Cockpit CMS Buckets Allows Unauthorized File Write
Weaknesses CWE-22
Type Values Removed Values Added
Description Cockpit 2.13.5 and earlier is vulnerable to directory traversal via the Buckets component. This vulnerability allows authenticated attackers to write files to arbitrary locations within the uploads directory or overwrite assets with malicious versions.
References
Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 15, 2026, 1:02 AM
Reserved
Apr 6, 2026, 12:00 AM
Status
Deferred
Published
Apr 29, 2026, 4:16 PM
Modified
Jul 15, 2026, 2:20 AM
Severity
Important
Public date
Apr 29, 2026, 12:00 AM