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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-09T17:47:06.000Z
- Modified: 2026-10-18T21:10:00.120Z
- Also known as: GHSA-hxrr-x32w-cg8g
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- haxtheweb issues: < 11.0.0
- elmsln/haxcms (Packagist): before 11.0.0
- psu haxcms-php: before 11.0.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/haxtheweb/issues/security/advisories/GHSA-hxrr-x32w-cg8g> (exploit, third-party-advisory, web)
- <https://github.com/haxtheweb/haxcms-php/blob/b158d8ba1f9602af92ab084fd03b418f953079fd/system/backend/php/lib/HAXCMSSite.php#L1248> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-49138> (advisory)
- <https://github.com/haxtheweb/issues> (package)

## Sources

- CVE List: [CVE-2025-49138](https://www.cve.org/CVERecord?id=CVE-2025-49138), CVE Terms of Use, modified 2025-06-10
- GitHub Advisory Database: [GHSA-hxrr-x32w-cg8g](https://github.com/advisories/GHSA-hxrr-x32w-cg8g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-49138](https://nvd.nist.gov/vuln/detail/CVE-2025-49138), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-49138 · Whole record: https://cve.day/CVE-2025-49138.json · Rebuilt by cve.day 2026-11-25T22:58:58.976Z
