CVE-2026-26988: LibreNMS: SQL Injection in ajax_table.php spreads through a covert data stream

Published Feb 18, 2026
·
Updated

Summary SQL Injection in IPv6 Address Search functionality via address parameter

A SQL injection vulnerability exists in the ajaxtable.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.

Details The vulnerability is located in the logic that handles address searching when searchtype is set to ipv6.

The application takes the user-supplied address parameter and splits it using the / delimiter: PHP [$address, $prefix] = explode('/', $vars['address']); If the searchtype is ipv6 and the $prefix variable is not empty, the code constructs the SQL query by directly concatenating the $prefix variable into the string: } elseif ($vars['searchtype'] == 'ipv6') { // ... code omitted ... if (! empty($prefix)) { // VULNERABILITY: Direct concatenation of user input $sql .= " AND ipv6prefixlen = '$prefix'"; } } Unlike the ipv4 block, which attempts to use prepared statements (binding parameters via $param[]), the ipv6 block treats the prefix as a raw string. By supplying an input containing a /, an attacker can populate the $prefix variable. If this variable contains single quotes ('), it breaks out of the string literal in the SQL statement, enabling SQL injection.

Vulnerable Code Snippet: if (! empty($prefix)) { $sql .= " AND ipv6prefixlen = '$prefix'"; } PoC To reproduce this vulnerability, an attacker can send a specially crafted HTTP POST request to the ajaxtable.php endpoint.

Payload breakdown:

- searchtype=ipv6: Forces the execution flow into the vulnerable elseif block.

- address=snow/1nd'":

- The explode function splits this into $address = 'snow' and $prefix = "1nd'"".

- The SQL query becomes: ... AND ipv6prefixlen = '1nd'"'.

- The single quote ' closes the string definition in the SQL query, and the subsequent characters allow for SQL syntax manipulation.

Reproduction Steps:

1. Access the application instance.

2. Send the following request (adjusting the host as necessary): POST /ajaxtable.php HTTP/1.1 Host: localhost id=address-search&searchtype=ipv6&address=snow/1nd'" Impact This vulnerability allows an attacker to execute arbitrary SQL queries against the database.

Other sources

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 ajaxtable.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.

MITRE

Affected Software

2 affected componentsFixes available
composer/librenms/librenms<26.2.0
26.2.0
librenms librenms<26.2.0

Event History

Feb 18, 2026
Advisory Published
via GitHub·10:30 PM
Data Sourced
via GitHub·10:30 PM
DescriptionWeaknessAffected Software
Feb 20, 2026
CVE Published
via MITRE·01:17 AM
Data Sourced
via MITRE·01:17 AM
DescriptionWeakness
Data Sourced
via NVD·02:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 23, 58126
Event
via FIRST·06:17 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-26988?

CVE-2026-26988 is classified as a high severity SQL injection vulnerability that could allow an attacker to manipulate database queries.

2

How do I fix CVE-2026-26988?

To fix CVE-2026-26988, upgrade your LibreNMS installation to version 26.2.0 or later, which addresses the SQL injection flaw.

3

What software is affected by CVE-2026-26988?

CVE-2026-26988 affects LibreNMS versions prior to 26.2.0.

4

What is the impact of CVE-2026-26988?

Exploitation of CVE-2026-26988 can lead to unauthorized access to sensitive data through malicious SQL queries.

5

Is CVE-2026-26988 easy to exploit?

Yes, CVE-2026-26988 features a SQL injection vulnerability that can be exploited with minimal technical skill.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203