medium CVSS 6.5 EPSS 0.44%

CVE-2025-49138·PHP vulnerability

HAX CMS PHP allows users to manage their microsite universe with a PHP backend. Prior to version 11.0.0, an authenticated Local File Inclusion (LFI) vulnerability in the HAXCMS saveOutline endpoint allows a low-privileged user to read arbitrary files on the server by manipulating the location field written into site.json. This enables attackers to exfiltrate sensitive system files such as /etc/passwd, application secrets, or configuration files accessible to the web server (www-data). The vulnerability stems from the way the HAXCMS backend handles the location field in the site's outline. When a user sends a POST request to /system/api/saveOutline, the backend stores the provided location value directly into the site.json file associated with the site, without validating or sanitizing the input. Later the location parameter is interpreted by the CMS to resolve and load the content for a given node. If the location field contains a relative path like `../../../etc/passwd`, the application will attempt to read and render that file. Version 11.0.0 fixes the issue.

Severity
medium
Software
PHP
Fixed in
11.0.0
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.44% — higher than 35% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Affected versions

Until: 11.0.0

Fixed in: 11.0.0

How to fix this CVE

HAXCMS PHP versions prior to 11.0.0 contain a path traversal vulnerability in the saveOutline endpoint that allows authenticated users to read arbitrary files from the server. Upgrade HAXCMS to version 11.0.0 or later, which implements proper input validation on the location field to prevent directory traversal attacks. Ensure all PHP dependencies are also updated to their latest versions.

sudo dnf update php php-common php-cli

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST /system/api/saveOutline HTTP/1.1.*location.*\.\./|POST.*saveOutline.*location.*%2e%2e%2f|POST.*saveOutline.*location.*etc%2fpasswd

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Implement WAF rules to block POST requests to /system/api/saveOutline containing path traversal patterns (../, ..\, %2e%2e%2f) in the location parameter, and enforce authentication checks before the endpoint is processed.

How to check if you are affected

  1. Check HAXCMS version: grep -r '"version"' /path/to/haxcms/package.json or check vendor/haxtheweb/haxcms-php/composer.json for version field
  2. Verify PHP installation: php -v and confirm HAXCMS is installed in your web root (typically /var/www/html or /opt/haxcms)
  3. Search web server logs for POST requests to /system/api/saveOutline endpoint: grep -i 'saveOutline' /var/log/apache2/access.log or /var/log/nginx/access.log
  4. Confirm the fix by checking if HAXCMS version is 11.0.0 or higher and reviewing site.json files for suspicious relative path values in the location field

FAQ

What is CVE-2025-49138?

CVE-2025-49138 is a local file inclusion vulnerability in HAXCMS PHP that allows authenticated users to manipulate the location field in the saveOutline API endpoint to read sensitive files from the server, such as /etc/passwd or application configuration files.

Is CVE-2025-49138 being actively exploited?

No, according to CISA's KEV database, CVE-2025-49138 is not currently being actively exploited in the wild, and no public exploit code is available.

What versions of PHP are affected by CVE-2025-49138?

HAXCMS PHP versions up to and including 10.x are affected; version 11.0.0 and later contain the fix.

How do I check if my server is vulnerable to CVE-2025-49138?

Run 'grep -r "version" /path/to/haxcms/package.json' or check the HAXCMS admin panel to confirm your version is below 11.0.0; if it is, your installation is vulnerable.

Does Defensia detect CVE-2025-49138?

Yes — Defensia's CVE advisory scanner compares installed HAXCMS package versions against the NVD database. If HAXCMS is installed on a monitored server, CVE-2025-49138 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.
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-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
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-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-49138. Free for 1 server.

Get started free