CVE-2026-38991: Cockpit Vulnerable to Unrestricted Upload of File with Dangerous Type
Cockpit versions 2.13.5 and earlier are affected by a misconfiguration within the Bucket component isFileTypeAllowed function where a specially crafted filename bypasses an extension filter. This allows an authenticated attacker to rename arbitrary files with the .php file extension enabling arbitrary code to be executed on the underlying server.
Published Apr 29, 2026 · Updated May 6, 2026
Affected packages
cockpit-hq/cockpit
- Ecosystem
- Composer (PHP)
- Affected
- < 2.14.0
- Fixed in
- 2.14.0
- Check
composer show cockpit-hq/cockpit
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Cockpit versions 2.13.5 and earlier are affected by a misconfiguration within the Bucket component _isFileTypeAllowed function where a specially crafted filename bypasses an extension filter. This allows an authenticated attacker to rename arbitrary files with the .php file extension enabling arbitrary code to be executed on the underlying server.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-23695
Cockpit CMS: Stored cross-site scripting vulnerability in the Set field type's Display template option
medium5.4No fixMay 15, 2026CVE-2026-38992
Cockpit is vulnerable to arbitrary code execution
critical9.8Apr 29, 2026CVE-2026-38993
Cockpit is vulnerable to directory traversal
medium6.5Apr 29, 2026CVE-2026-6626
Cockpit has NoSQL Injection Through Content Aggregation Pipelines
low6.3Apr 20, 2026CVE-2026-31891
Cockpit CMS has SQL Injection in MongoLite Aggregation Optimizer via toJsonExtractRaw()
high7.7Mar 17, 2026CVE-2025-7053
Cockpit - Content Platform vulnerable to XSS through name or email argument names
medium3.5Jul 4, 2025
