critical CVSS 9.9

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 php

Defensia 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

  1. Run `php -v` to check the currently installed PHP version and confirm it is 10.0.3 or later for HAX CMS environments.
  2. 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.
  3. 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`.
  4. 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

CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.

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