{"id":"CVE-2025-49138","published":"2025-06-09T21:05:23Z","modified":"2025-06-10T15:29:50Z","title":"HAX CMS vulnerable to Local File Inclusion via saveOutline API Location Parameter","vendor":"haxtheweb","product":"issues","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00547,"percentile":0.46726,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/haxtheweb/haxcms-php/blob/b158d8ba1f9602af92ab084fd03b418f953079fd/system/backend/php/lib/HAXCMSSite.php#L1248","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":9.35},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"haxtheweb","affectedVersions":[{"vendor":"haxtheweb","product":"issues","versions":["< 11.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-06-10T15:10:20.341839Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"elmsln/haxcms","vulnerableRanges":["<11.0.0"],"patched":["11.0.0"],"from":["GHSA-hxrr-x32w-cg8g"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal and local file inclusion weakness in the saveOutline endpoint (/system/api/saveOutline) of the HAX CMS PHP backend from haxtheweb, specifically the issues component, where the location value is stored in site.json without validation and later used to load file content. An attacker with low-privilege authenticated network access can exploit it by submitting a crafted location value containing relative path sequences, such as traversal to /etc/passwd, to read arbitrary files readable by the web server's user, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:22Z"},"euvd":{"id":"EUVD-2025-17561","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-49137","published":"2025-06-09","fixed":"11.0.0","kev":false},{"cve":"CVE-2025-49138","published":"2025-06-09","fixed":"11.0.0","kev":false},{"cve":"CVE-2025-54139","published":"2025-07-22","fixed":"11.0.8","kev":false,"link":{"from":"CVE-2025-49138","to":"CVE-2025-54139","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:elmsln/haxcms","fromFixed":"11.0.0","toFixed":"11.0.8","daysApart":43}]}},{"cve":"CVE-2025-54378","published":"2025-07-26","fixed":"11.0.14","kev":false}],"package":"Packagist:elmsln/haxcms"}}