CVE-2025-49138

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-49138
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-49138.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-49138
Aliases
Related
Published
2025-06-09T21:15:47Z
Modified
2025-06-21T06:01:10.134667Z
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/haxtheweb/haxcms-php

Affected ranges

Type
GIT
Repo
https://github.com/haxtheweb/haxcms-php
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.0.1
0.1.0
0.11.0
0.12.0
0.12.1
0.12.2
0.12.3
0.2.0
0.3.0
0.4.0
0.5.0
0.6.0
0.7.0
0.8.0
0.8.1
0.8.2
0.9.0

1.*

1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.2.0
1.2.1
1.2.10
1.2.11
1.2.12
1.2.13
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.3.0
1.3.1
1.4.0

10.*

10.0.0
10.0.3

2.*

2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.8
2.0.9

3.*

3.0.0

4.*

4.0.0
4.1.0

5.*

5.1.0

6.*

6.0.1

7.*

7.0.1
7.0.10
7.0.13
7.0.14
7.0.15
7.0.16
7.0.2
7.0.3

8.*

8.0.0

9.*

9.0.21

v10.*

v10.0.3

v9.*

v9.0.0
v9.0.1
v9.0.2
v9.0.3
v9.0.5
v9.0.6