Description
Cockpit CMS through 2.14.0 contains a path traversal and local file inclusion vulnerability that allows unauthenticated attackers to read arbitrary files or execute PHP files by including unvalidated PATH_INFO derived from REQUEST_URI in filesystem path construction without containment checks. Attackers can inject dot-dot sequences into the URL to traverse outside the designated spaces directory, and when the resolved path ends with a .php extension, the application passes it to include(), enabling local file inclusion on deployments using the PHP built-in server or certain non-default Nginx configurations.
Published: 2026-07-02
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Cockpit CMS up to version 2.14.0 constructs a file system path by appending the PATH_INFO portion of a request URL to a spaces directory without any validation. An attacker can embed sequences of '..' and forward slashes in the URL to escape the intended directory. When the resolved path ends with a .php extension, the application forwards it to include(), allowing local file inclusion. This vulnerability permits unauthenticated attackers to read arbitrary files or execute arbitrary PHP code on deployments that use the PHP built‑in server or certain non‑default Nginx configurations.

Affected Systems

All installations of the Cockpit project’s CMS that run any release up to and including 2.14.0 are affected, because the vulnerable code is present in those releases. Vulnerable deployments include those exposed to public traffic and that employ the PHP built‑in server or Nginx configurations that forward PATH_INFO to the application.

Risk and Exploitability

The CVSS score of 8.2 marks the vulnerability as high severity, while the EPSS score of less than 1 % indicates a low likelihood of exploitation. The issue is not listed in the CISA KEV catalog. Attackers can trigger the flaw by crafting a URL that contains a malicious PATH_INFO segment, with authentication not required. Any publicly accessible instance is thus vulnerable, and exploitation can lead to confidential data disclosure or arbitrary code execution.

Generated by OpenCVE AI on July 31, 2026 at 14:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Cockpit CMS to the latest available release, ensuring the fix for the PATH_INFO inclusion issue is applied.
  • Configure the web server to reject or strip PATH_INFO values that contain dot-dot sequences or trailing periods, or disable the PHP built‑in server on publicly‑facing deployments.
  • If an immediate upgrade is not possible, patch or replace the index.php file to normalize and validate all PATH_INFO values, ensuring that only paths within the intended spaces directory are passed to include().
  • Optionally, enforce strict inclusion logic by checking that the resolved path resides within the permitted directory tree before calling include(), to mitigate the risk of accidental local file inclusion.

Generated by OpenCVE AI on July 31, 2026 at 14:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 14 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
First Time appeared Agentejo
Agentejo cockpit
CPEs cpe:2.3:a:agentejo:cockpit:*:*:*:*:*:*:*:*
Vendors & Products Agentejo
Agentejo cockpit

Wed, 08 Jul 2026 14:15:00 +0000

Type Values Removed Values Added
Description Cockpit CMS before release 364 contains a path traversal and local file inclusion vulnerability that allows unauthenticated attackers to read arbitrary files or execute PHP files by including unvalidated PATH_INFO derived from REQUEST_URI in filesystem path construction without containment checks. Attackers can inject dot-dot sequences into the URL to traverse outside the designated spaces directory, and when the resolved path ends with a .php extension, the application passes it to include(), enabling local file inclusion on deployments using the PHP built-in server or certain non-default Nginx configurations. Cockpit CMS through 2.14.0 contains a path traversal and local file inclusion vulnerability that allows unauthenticated attackers to read arbitrary files or execute PHP files by including unvalidated PATH_INFO derived from REQUEST_URI in filesystem path construction without containment checks. Attackers can inject dot-dot sequences into the URL to traverse outside the designated spaces directory, and when the resolved path ends with a .php extension, the application passes it to include(), enabling local file inclusion on deployments using the PHP built-in server or certain non-default Nginx configurations.
Title Cockpit CMS < 364 - Path Traversal Local File Inclusion via index.php Cockpit CMS 2.14.0 - Path Traversal Local File Inclusion via index.php
References

Mon, 06 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 06 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 02 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Cockpit-project
Cockpit-project cockpit
Vendors & Products Cockpit-project
Cockpit-project cockpit

Thu, 02 Jul 2026 20:15:00 +0000

Type Values Removed Values Added
Description Cockpit CMS before release 364 contains a path traversal and local file inclusion vulnerability that allows unauthenticated attackers to read arbitrary files or execute PHP files by including unvalidated PATH_INFO derived from REQUEST_URI in filesystem path construction without containment checks. Attackers can inject dot-dot sequences into the URL to traverse outside the designated spaces directory, and when the resolved path ends with a .php extension, the application passes it to include(), enabling local file inclusion on deployments using the PHP built-in server or certain non-default Nginx configurations.
Title Cockpit CMS < 364 - Path Traversal Local File Inclusion via index.php
Weaknesses CWE-22
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Agentejo Cockpit
Cockpit-project Cockpit
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-14T22:03:09.658Z

Reserved: 2026-06-30T20:20:33.790Z

Link: CVE-2026-58467

cve-icon Vulnrichment

Updated: 2026-07-06T16:22:33.835Z

cve-icon NVD

Status : Deferred

Published: 2026-07-02T20:17:06.733

Modified: 2026-07-14T23:17:31.310

Link: CVE-2026-58467

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-02T20:04:56Z

Links: CVE-2026-58467 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T15:00:04Z

Weaknesses
  • CWE-22

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