CVE-2025-49138
Full vulnerability record from the local CVENow database.
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.
View original CVE JSON
{
"id": "CVE-2025-49138",
"sourceIdentifier": "[email protected]",
"published": "2025-06-09T21:15:47.047",
"lastModified": "2026-10-18T21:10:00.120",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "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."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "haxtheweb",
"product": "issues",
"versions": [
{
"version": "< 11.0.0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.8,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2025-06-10T15:10:20.341839Z",
"id": "CVE-2025-49138",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-22"
},
{
"lang": "en",
"value": "CWE-73"
}
]
},
{
"source": "[email protected]",
"type": "Primary",
"description": [
{
"lang": "en",
"value": "NVD-CWE-Other"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:psu:haxcms-php:*:*:*:*:*:*:*:*",
"versionEndExcluding": "11.0.0",
"matchCriteriaId": "A72C09C8-71A3-4B4F-BA0E-CF75016F5112"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/haxtheweb/haxcms-php/blob/b158d8ba1f9602af92ab084fd03b418f953079fd/system/backend/php/lib/HAXCMSSite.php#L1248",
"source": "[email protected]",
"tags": [
"Product"
]
},
{
"url": "https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8g",
"source": "[email protected]",
"tags": [
"Exploit",
"Third Party Advisory"
]
},
{
"url": "https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8g",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"tags": [
"Exploit",
"Third Party Advisory"
]
}
]
}