Skip to content

CVE-2025-49138 HAX CMS vulnerable to Local File Inclusion via saveOutline API Location Parameter

MediumCVSS 6.5 EPSS 0.55%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHP

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
elmsln/haxcms(Packagist) < 11.0.0; = 0.0.1; = 0.1.0; = 0.2.0 +14 more 11.0.0 Fixed
psu haxcms-php < 11.0.0 11.0.0 Fixed
haxtheweb issues = < 11.0.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
elmsln/haxcms(Packagist) < 11.0.0 11.0.0
elmsln/haxcms(Packagist) = 0.0.1 No fix listed
elmsln/haxcms(Packagist) = 0.1.0 No fix listed
elmsln/haxcms(Packagist) = 0.11.0 No fix listed
elmsln/haxcms(Packagist) = 0.12.0 No fix listed
elmsln/haxcms(Packagist) = 0.12.1 No fix listed
elmsln/haxcms(Packagist) = 0.12.2 No fix listed
elmsln/haxcms(Packagist) = 0.12.3 No fix listed
elmsln/haxcms(Packagist) = 0.2.0 No fix listed
elmsln/haxcms(Packagist) = 0.3.0 No fix listed
elmsln/haxcms(Packagist) = 0.4.0 No fix listed
elmsln/haxcms(Packagist) = 0.5.0 No fix listed
elmsln/haxcms(Packagist) = 0.6.0 No fix listed
elmsln/haxcms(Packagist) = 0.7.0 No fix listed
elmsln/haxcms(Packagist) = 0.8.0 No fix listed
elmsln/haxcms(Packagist) = 0.8.1 No fix listed
elmsln/haxcms(Packagist) = 0.8.2 No fix listed
elmsln/haxcms(Packagist) = 0.9.0 No fix listed
haxtheweb issues = < 11.0.0 No fix listed
psu haxcms-php < 11.0.0 11.0.0

References