CVE-2023-4195: Cockpit PHP Remote File Inclusion vulnerability
9.9
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.69215%
CWE
Published
8/6/2023
Updated
11/12/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| cockpit-hq/cockpit | composer | < 2.6.3 | 2.6.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability arises from insufficient validation of file extensions during upload. The patch explicitly adds '.phps' to the list of blocked extensions in the file modules/Assets/bootstrap.php, confirming that the original code allowed such files. This oversight enabled attackers to upload malicious PHP files (e.g., .phps) via the system's file upload utility. The improper validation in this file directly maps to CWE-98 (PHP RFI), as the application did not properly restrict filenames for inclusion/execution. The code change in the commit and the CWE classification strongly indicate that the file upload handler in this file was the vulnerable component.