LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring tool. Versions 25.12.0 and below contain an SQL Injection vulnerability in the ajax_table.php endpoint. The application fails to properly sanitize or parameterize user input when processing IPv6 address searches. Specifically, the address parameter is split into an address and a prefix, and the prefix portion is directly concatenated into the SQL query string without validation. This allows an attacker to inject arbitrary SQL commands, potentially leading to unauthorized data access or database manipulation. This issue has been fixed in version 26.2.0.
The application does not properly sanitize or parameterize user input data when processing IPv6 address searches. The address parameter is split into an address part and prefix, and the fragment with the prefix is directly concatenated into the SQL query string without any validation. An attacker can supply a properly crafted string in place of the IPv6 prefix, thereby injecting their own SQL commands into the query executed by the database.
An attacker can gain unauthorized access to data stored in the database or manipulate it, including reading sensitive configuration information and monitored network infrastructure data.
LibreNMS should be updated to version 26.2.0, in which the vulnerability has been fixed. Patch details are available in the vendor's GitHub repository (commit 15429580baba03ed1dd377bada1bde4b7a1175a1).
LibreNMS in versions 25.12.0 and earlier
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XLibrenms
APPLibrenms< 26.2.0
Related vulnerabilities
LibreNMS — zdalne wykonanie kodu przez OS command injection (RCE)
LibreNMS — niewystarczające wygasanie sesji użytkownika (CWE-613)
LibreNMS — wielokrotny command injection w parametrach serwisowych
Path Traversal w LibreNMS – dostęp do arbitralnych plików
LibreNMS — wstrzyknięcie składni RRDtool przez parametry wykresów