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

Published Jun 9, 2025
·
Updated

Summary 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).

Details 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 like in HAXCMSSite.php line 1248 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.

PoC 1. Authenticate to the CMS and retrieve the JWT and CSRF token.

2. Issue a POST request to /system/api/saveOutline with the path traversal injection via the location parameter :

<img width="839" alt="LFI" src="https://github.com/user-attachments/assets/91b1bb7f-9248-40d2-81fc-f839beb4d39c" />

3. Curl the website root to see the file contents.

!passwd

Impact This 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.

Other sources

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.

— MITRE

HAX CMS vulnerable to Local File Inclusion via saveOutline API Location Parameter

— Packagist

Affected Software

3 affected componentsFixes available
composer/elmsln/haxcms<11.0.0
11.0.0
pSu HaxCMS-PHP<11.0.0
composer/elmsln/haxcms<11.0.0
11.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/elmsln/haxcms to a version that resolves this vulnerability.

    Fixed in 11.0.0
  2. Upgrade

    Upgrade HAXCMS PHP to a version that resolves this vulnerability.

    Fixed in 11.0.0

Event History

Jun 9, 2025
Advisory Published
via GitHub·05:47 PM
Data Sourced
via GitHub·05:47 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·05:47 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·09:05 PM
Data Sourced
via MITRE·09:05 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-49138?

CVE-2025-49138 is considered to have a medium severity level due to its potential for unauthorized file access.

2

How do I fix CVE-2025-49138?

To fix CVE-2025-49138, upgrade to version 11.0.0 or later of the elmsln/haxcms package.

3

Who is affected by CVE-2025-49138?

All users of the elmsln/haxcms package prior to version 11.0.0 are affected by CVE-2025-49138.

4

What type of vulnerability is CVE-2025-49138?

CVE-2025-49138 is classified as a Local File Inclusion (LFI) vulnerability.

5

What can attackers do with CVE-2025-49138?

Attackers exploiting CVE-2025-49138 can read arbitrary files from the server, potentially exfiltrating sensitive data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203