LibreNMS
cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*
- <= 25.12.0
A SQL injection vulnerability has been identified in LibreNMS versions prior to 25.12.0. The issue arises in the 'ajax_table.php' endpoint, where user input for IPv6 address searches is not properly sanitized or parameterized. Specifically, the 'address' parameter is split into an address and a prefix, with the prefix being directly concatenated into the SQL query without validation. This flaw allows attackers to inject arbitrary SQL commands, potentially leading to unauthorized data access or manipulation. The vulnerability has been patched in version 26.2.0.
Exploitation of this vulnerability allows for arbitrary SQL execution, which could be used to access or manipulate database information without authorization.
To reproduce this vulnerability, send a POST request to the 'ajax_table.php' endpoint with the 'search_type' set to 'ipv6' and the 'address' parameter crafted to include a prefix that exploits the SQL query construction. The injected SQL payload should be designed to manipulate the SQL query execution, taking advantage of the direct concatenation of the prefix into the SQL string.
Users are advised to update LibreNMS to version 26.2.0 or later.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.