Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Psu | Haxcms-Php | < 11.0.0 |
Related Weaknesses (CWE)
References
- https://github.com/haxtheweb/haxcms-php/blob/b158d8ba1f9602af92ab084fd03b418f953Product
- https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8gExploitThird Party Advisory
- https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8gExploitThird Party Advisory
FAQ
What is CVE-2025-49138?
CVE-2025-49138 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 al...
How severe is CVE-2025-49138?
CVE-2025-49138 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-49138?
Check the references section above for vendor advisories and patch information. Affected products include: Psu Haxcms-Php.