CVE-2025-32028·PHP vulnerability
HAX CMS PHP allows you to manage your microsite universe with PHP backend. Multiple file upload functions within the HAX CMS PHP application call a ’save’ function in ’HAXCMSFile.php’. This save function uses a denylist to block specific file types from being uploaded to the server. This list is non-exhaustive and only blocks ’.php’, ’.sh’, ’.js’, and ’.css’ files. The existing logic causes the system to "fail open" rather than "fail closed." This vulnerability is fixed in 10.0.3.
- Severity
- critical
- Software
- PHP
- Fixed in
- 10.0.3
- Published
- 2025-04-08
Affected versions
From: 9.0.0
Until: 10.0.3
Fixed in: 10.0.3
How to fix this CVE
HAX CMS PHP versions 9.0.0 through 10.0.2 contain a critical file upload bypass vulnerability due to incomplete file type filtering that uses a denylist approach rather than a whitelist. Upgrade PHP and HAX CMS to version 10.0.3 or later immediately, as the vulnerable save function in HAXCMSFile.php can allow attackers to upload executable files by bypassing the weak extension restrictions. After patching, verify that file upload handlers reject all executable file types by default and only permit safe formats.
sudo dnf update phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST requests to file upload endpoints with Content-Disposition headers containing file extensions not in the denylist (e.g., .phtml, .php3, .php4, .php5, .phar, .shtml, .exe) followed by a 200/201 response and subsequent requests to execute the uploaded file via direct URL access.WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement a whitelist-based file upload filter that explicitly allows only safe file types (pdf, jpg, png, gif, txt, docx) and rejects all others with a 403 Forbidden response. Block requests containing double extensions (e.g., file.php.jpg) or null byte injection attempts. Log all rejected uploads for security review.How to check if you are affected
- Run `php -v` to check the currently installed PHP version and confirm it is 10.0.3 or later for HAX CMS environments.
- Locate HAXCMSFile.php on your server using `find / -name 'HAXCMSFile.php' 2>/dev/null` and verify the file exists in your HAX CMS installation directory.
- Search web server access logs for suspicious file upload requests to endpoints handling file uploads using `grep -i 'upload\|file' /var/log/apache2/access.log | grep -E '\.(phtml|phar|phps|php[0-9]|shtml|exe|sh|bat|cmd)' | head -20`.
- After updating, test file upload functionality by attempting to upload a harmless executable file (e.g., test.php) and verify it is rejected by the application.
FAQ
What is CVE-2025-32028?
CVE-2025-32028 is a critical file upload vulnerability in HAX CMS PHP where the save function uses an incomplete denylist to block dangerous file types, allowing attackers to circumvent restrictions and upload malicious executable files to the server by using alternative extensions or encoding techniques.
Is CVE-2025-32028 being actively exploited?
No, CVE-2025-32028 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public exploits are currently available. However, the critical severity rating and straightforward nature of the vulnerability warrant immediate patching.
What versions of PHP are affected by CVE-2025-32028?
HAX CMS PHP versions 9.0.0 through 10.0.2 are affected by this vulnerability. Version 10.0.3 and later contain the fix.
How do I check if my server is vulnerable to CVE-2025-32028?
Verify your HAX CMS version by checking the version file or running `grep -r 'version' /path/to/hax/cms/config | grep -i '10\.0\.[0-2]'`. If the output shows version 9.0.0–10.0.2, your installation is vulnerable.
Does Defensia detect CVE-2025-32028?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP is installed on a monitored server, CVE-2025-32028 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-32028. Free for 1 server.
Get started free