LibreNMS up to 25.6.x ajax_form.php Type filename control

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.1$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.2
VulDB 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): 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Filename control
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: LibreNMS 25.7.0
Patch: ec89714d929ef0cf2321957ed9198b0f18396c81

Timelineinfo

07/17/2025 CVE reserved
07/23/2025 +6 days Advisory disclosed
07/23/2025 +0 days VulDB entry created
08/05/2025 +13 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: GHSA-gq96-8w38-hhj2
Status: Confirmed

CVE: CVE-2025-54138 (🔒)
GCVE (CVE): GCVE-0-2025-54138
GCVE (VulDB): GCVE-100-317320
EUVD: 🔒

Entryinfo

Created: 07/23/2025 08:02
Updated: 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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!