{"id":"CVE-2025-49138","aliases":["CVE-2025-49138","GHSA-hxrr-x32w-cg8g"],"related":[],"kind":"vulnerability","state":"published","title":"HAX CMS vulnerable to Local File Inclusion via saveOutline API Location Parameter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Summary\nAn 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).\n\n### Details\nThe 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.\n\nLater the location parameter is interpreted by the CMS like in[ HAXCMSSite.php line 1248](https://github.com/haxtheweb/haxcms-php/blob/b158d8ba1f9602af92ab084fd03b418f953079fd/system/backend/php/lib/HAXCMSSite.php#L1248) 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.\n\n### PoC\n1. Authenticate to the CMS and retrieve the JWT and CSRF token.\n\n2. Issue a POST request to /system/api/saveOutline with the path traversal injection via the location parameter :\n\n<img width=\"839\" alt=\"LFI\" src=\"https://github.com/user-attachments/assets/91b1bb7f-9248-40d2-81fc-f839beb4d39c\" />\n\n3. Curl the website root to see the file contents.\n\n![passwd](https://github.com/user-attachments/assets/21adbb00-8e57-48f6-b1e9-f5b03ec65b55)\n\n\n### Impact\nThis is an authenticated Local File Inclusion (LFI) vulnerability, via the location parameter the attacker can read any file on the filesystem that is accessible by the www-data user.","format":"markdown","source":"ghsa"},{"lang":"es","text":"HAX CMS PHP permite a los usuarios gestionar su universo de micrositios con un backend de PHP. Versiones anteriores a la versión 11.0.0, una vulnerabilidad de inclusión local de ficheros (LFI) autenticada en el endpoint saveOutline de HAXCMS permite a un usuario con pocos privilegios leer ficheros arbitrarios en el servidor manipulando el campo location escrito en site.json. Esto permite a los atacantes exfiltrar ficheros de sistema sensibles como /etc/p4ssd, secretos de aplicación o ficheros de configuración accesibles para el servidor web (www-data). La vulnerabilidad se origina en la forma en que el backend de HAXCMS maneja el campo location en el esquema del sitio. Cuando un usuario envía una solicitud POST a /system/api/saveOutline, el backend almacena el valor location proporcionado directamente en el fichero site.json asociado con el sitio, sin validar ni sanear la entrada. Posteriormente, el parámetro location es interpretado por el CMS para resolver y cargar el contenido para un nodo dado. Si el campo location contiene una ruta relativa como '.. / ../../etc/p4ssd', la aplicación intentará leer y renderizar ese fichero. La versión 11.0.0 corrige el problema.","source":"nvd"}],"published":"2025-06-09T17:47:06.000Z","modified":"2026-10-18T21:10:00.120Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-73"],"affected":[{"ranges":[{"version":"< 11.0.0","status":"affected"}],"vendor":"haxtheweb","product":"issues","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"11.0.0"}],"ecosystem":"Packagist","package":"elmsln/haxcms","purl":"pkg:composer/elmsln/haxcms","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"11.0.0"}],"vendor":"psu","product":"haxcms-php","cpe":"cpe:2.3:a:psu:haxcms-php:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8g","tags":["exploit","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/haxtheweb/haxcms-php/blob/b158d8ba1f9602af92ab084fd03b418f953079fd/system/backend/php/lib/HAXCMSSite.php#L1248","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49138","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/haxtheweb/issues","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-06-10T15:10:20.341Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-49138","url":"https://www.cve.org/CVERecord?id=CVE-2025-49138","licence":"CVE Terms of Use","modified":"2025-06-10T15:29:50.231Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hxrr-x32w-cg8g","url":"https://github.com/advisories/GHSA-hxrr-x32w-cg8g","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:57.703Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-49138","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49138","licence":"Public domain","modified":"2026-10-18T21:10:00.120Z"}],"updatedAt":"2026-11-25T22:58:58.976Z","epss":{"score":0.00547,"percentile":0.47226,"date":"2026-12-01T12:00:22.000Z"}}