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.
References
Link | Resource |
---|---|
https://github.com/haxtheweb/haxcms-php/blob/b158d8ba1f9602af92ab084fd03b418f953079fd/system/backend/php/lib/HAXCMSSite.php#L1248 | Product |
https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8g | Third Party Advisory Exploit |
https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8g | Third Party Advisory Exploit |
Configurations
History
20 Jun 2025, 14:11
Type | Values Removed | Values Added |
---|---|---|
CWE | NVD-CWE-Other | |
References | () https://github.com/haxtheweb/haxcms-php/blob/b158d8ba1f9602af92ab084fd03b418f953079fd/system/backend/php/lib/HAXCMSSite.php#L1248 - Product | |
References | () https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8g - Third Party Advisory, Exploit | |
CPE | cpe:2.3:a:haxtheweb:haxcms-php:*:*:*:*:*:*:*:* | |
First Time |
Haxtheweb haxcms-php
Haxtheweb |
10 Jun 2025, 16:15
Type | Values Removed | Values Added |
---|---|---|
References | () https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8g - |
09 Jun 2025, 21:15
Type | Values Removed | Values Added |
---|---|---|
New CVE |
Information
Published : 2025-06-09 21:15
Updated : 2025-06-20 14:11
NVD link : CVE-2025-49138
Mitre link : CVE-2025-49138
CVE.ORG link : CVE-2025-49138
JSON object : View
Products Affected
haxtheweb
- haxcms-php
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CWE-73External Control of File Name or Path
NVD-CWE-Other