Read the docs
TI-2025-33981 Aliases CVE-2025-54138GHSA-gq96-8w38-hhj2

LibreNMS has Authenticated Local File Inclusion in ajax_form.php that Allows RCE

Priority LOW 37CWE-98Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-98.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01243 69th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed librenms (librenms): 25.7.0librenms/librenms (Packagist): 25.7.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
librenmslibrenmsbefore 25.7.025.7.0Patch availableCNA
—librenms/librenms (Packagist)before 25.7.025.7.0Patch availableGHSA-gq96-8w38-hhj2
  • librenms Vendorlibrenms Affected before 25.7.0 Fixed in 25.7.0 Patch available CNA
  • librenms/librenms (Packagist) Vendor— Affected before 25.7.0 Fixed in 25.7.0 Patch available GHSA-gq96-8w38-hhj2

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*before 25.7.0Vulnerablelibrenms
  • cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:* Versions before 25.7.0 Vulnerable ·librenms

Remediation

  • Fix · CNA librenms (librenms) Fixed in 25.7.0
  • Fix · GHSA-gq96-8w38-hhj2 librenms/librenms (Packagist) Fixed in 25.7.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-54138
  2. 2026-10-03 Alias added: GHSA-gq96-8w38-hhj2

References

  • TI-2018-14479 LibreNMS 1.46 allows remote attackers to execute arbitrary OS commands by using the… CVSS 3.0CRITICAL 9.8
  • TI-2026-59134 LibreNMS before 26.8.0 Authentication Bypass via API Token Type Confusion CVSS 4.0CRITICAL 9.2
  • TI-2022-03735 Insufficient Session Expiration in librenms/librenms CVSS 3.1CRITICAL 9.8
  • TI-2022-03252 Deserialization of Untrusted Data in librenms/librenms CVSS 3.1HIGH 8.8
  • TI-2026-05445 OS command injection in librenms CVSS 4.0HIGH 8.5
  • TI-2024-34235 LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command… CVSS 3.1CRITICAL 9.1
See all 105 →

Sources