LibreNMS up to 25.6.x ajax_form.php Type filename control
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.1 | $0-$5k | 0.00 |
Summary
A vulnerability labeled as problematic has been found in LibreNMS up to 25.6.x. This vulnerability affects unknown code of the file ajax_form.php. Executing a manipulation of the argument Type can lead to filename control. This vulnerability is registered as CVE-2025-54138. It is possible to launch the attack remotely. No exploit is available. The affected component should be upgraded.
Details
A vulnerability was found in LibreNMS up to 25.6.x. It has been declared as problematic. This vulnerability affects an unknown part of the file ajax_form.php. The manipulation of the argument type with an unknown input leads to a filename control vulnerability. The CWE definition for the vulnerability is CWE-98. The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:
LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems. LibreNMS versions 25.6.0 and below contain an architectural vulnerability in the ajax_form.php endpoint that permits Remote File Inclusion based on user-controlled POST input. The application directly uses the type parameter to dynamically include .inc.php files from the trusted path includes/html/forms/, without validation or allowlisting. This pattern introduces a latent Remote Code Execution (RCE) vector if an attacker can stage a file in this include path — for example, via symlink, development misconfiguration, or chained vulnerabilities. This is fixed in version 25.7.0.
The advisory is shared for download at github.com. This vulnerability was named CVE-2025-54138 since 07/17/2025. The exploitation appears to be difficult. The attack can be initiated remotely. There are known technical details, but no exploit is available.
By approaching the search of inurl:ajax_form.php it is possible to find vulnerable targets with Google Hacking.
Upgrading to version 25.7.0 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch ec89714d929ef0cf2321957ed9198b0f18396c81 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2025-22384). VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Name
Version
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.2VulDB Meta Temp Score: 6.1
VulDB Base Score: 5.0
VulDB Temp Score: 4.8
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 7.5
CNA Vector (GitHub_M): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Filename controlCWE: CWE-98
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Google Hack: 🔒
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: LibreNMS 25.7.0
Patch: ec89714d929ef0cf2321957ed9198b0f18396c81
Timeline
07/17/2025 CVE reserved07/23/2025 Advisory disclosed
07/23/2025 VulDB entry created
08/05/2025 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-gq96-8w38-hhj2
Status: Confirmed
CVE: CVE-2025-54138 (🔒)
GCVE (CVE): GCVE-0-2025-54138
GCVE (VulDB): GCVE-100-317320
EUVD: 🔒
Entry
Created: 07/23/2025 08:02Updated: 08/05/2025 22:04
Changes: 07/23/2025 08:02 (67), 07/23/2025 21:40 (1), 08/05/2025 22:04 (1)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.