CVE-2026-26988: LibreNMS SQL Injection Vulnerability
HIGHCVE-2026-26988 is a HIGH sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting LibreNMS libraries in the Packagist ecosystem. The issue involves sql injection in ajax_table.php spreads through a covert data stream.. Remediation is available by upgrading affected packages to version 26.2.0.
CVE-2026-26988 at a Glance
How to Fix CVE-2026-26988
To remediate this vulnerability, upgrade all affected LibreNMS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade librenms/librenms to 26.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for librenms/librenms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-26988, inspect your project dependencies for LibreNMS:
inspect dependencies for librenms/librenms
Analyze the terminal output to locate any version of LibreNMS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.2.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In LibreNMS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-26988 Affected LibreNMS Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
librenms/librenms
|
Packagist |
< 26.2.0
|
26.2.0
|
References
Frequently Asked Questions
What is CVE-2026-26988?
Which LibreNMS versions are affected?
What version fixes CVE-2026-26988?
Is librenms/librenms affected?
What CWE is associated with CVE-2026-26988?
How can I check Packagist dependencies for CVE-2026-26988?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h3rv-q4rq-pqcv",
"modified" : "2026-02-18T22:30:18Z",
"published" : "2026-02-18T22:30:18Z",
"aliases" : [ "CVE-2026-26988" ],
"summary" : "LibreNMS: SQL Injection in ajax_table.php spreads through a covert data stream.",
"details" : "### Summary\n*SQL Injection in IPv6 Address Search functionality via `address` parameter**\n\nA SQL injection vulnerability exists 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.\n\n### Details\nThe vulnerability is located in the logic that handles address searching when `search_type` is set to `ipv6`.\n\nThe application takes the user-supplied `address` parameter and splits it using the `/` delimiter:\n```PHP\n[$address, $prefix] = explode('/', $vars['address']);\n```\nIf the search_type is ipv6 and the $prefix variable is not empty, the code constructs the SQL query by directly concatenating the $prefix variable into the string:\n```\n} elseif ($vars['search_type'] == 'ipv6') {\n // ... code omitted ...\n if (! empty($prefix)) {\n // VULNERABILITY: Direct concatenation of user input\n $sql .= \" AND ipv6_prefixlen = '$prefix'\";\n }\n}\n```\nUnlike 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.\n\nVulnerable Code Snippet:\n```\nif (! empty($prefix)) {\n $sql .= \" AND ipv6_prefixlen = '$prefix'\";\n}\n```\n### PoC\nTo reproduce this vulnerability, an attacker can send a specially crafted HTTP POST request to the ajax_table.php endpoint.\n\nPayload breakdown:\n\n- search_type=ipv6: Forces the execution flow into the vulnerable elseif block.\n\n- address=snow/1nd'\":\n\n - The explode function splits this into $address = 'snow' and $prefix = \"1nd'\"\".\n\n - The SQL query becomes: ... AND ipv6_prefixlen = '1nd'\"'.\n\n - The single quote ' closes the string definition in the SQL query, and the subsequent characters allow for SQL syntax manipulation.\n\nReproduction Steps:\n\n1. Access the application instance.\n\n2. Send the following request (adjusting the host as necessary):\n```\nPOST /ajax_table.php HTTP/1.1\nHost: localhost\nid=address-search&search_type=ipv6&address=snow/1nd'\" \n```\n### Impact\nThis vulnerability allows an attacker to execute arbitrary SQL queries against the database.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "librenms/librenms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "26.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/librenms/librenms/security/advisories/GHSA-h3rv-q4rq-pqcv"
}, {
"type" : "WEB",
"url" : "https://github.com/librenms/librenms/pull/18777"
}, {
"type" : "WEB",
"url" : "https://github.com/librenms/librenms/commit/15429580baba03ed1dd377bada1bde4b7a1175a1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/librenms/librenms"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-18T22:30:18Z",
"nvd_published_at" : null
}
}