CVE-2025-1025
PHP vulnerability analysis and mitigation

Overview

A vulnerability has been identified in cockpit-hq/cockpit versions before 2.4.1, tracked as CVE-2025-1025. The vulnerability allows attackers to perform Arbitrary File Upload by bypassing the upload filter using different file extensions. This vulnerability was disclosed on December 16, 2024, and published on February 5, 2025 (NVD, Snyk).

Technical details

The vulnerability is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type). The issue stems from insufficient upload filtering in the assets manager, where attackers can bypass the upload filter using extensions like .phar or .phtml to achieve Remote Code Execution (RCE). The vulnerability has received a CVSS v4.0 score of 7.7 (HIGH) and CVSS v3.1 score of 7.5 (HIGH), indicating significant potential impact (NVD, GitHub Commit).

Impact

The vulnerability allows attackers to bypass upload filters and potentially execute arbitrary code on the affected system through malicious file uploads. This can lead to Remote Code Execution (RCE), significantly compromising the integrity of the affected system (GitHub PoC).

Mitigation and workarounds

The vulnerability has been fixed in version 2.4.1 of cockpit-hq/cockpit. The fix implements additional security checks for uploading files by expanding the list of blocked file extensions to include 'php', 'phar', and 'phtml'. Users should upgrade to version 2.4.1 or later to mitigate this vulnerability (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management