Description
An issue was discovered in LibreNMS 1.65. A remote authenticated attacker with normal privileges can extract all the information from the LibreNMS database via a SQL injection in the sort parameter in the /ajax_table.php API endpoint. This affects address-search.inc.php, alertlog.inc.php, arp-search.inc.php, as-selection.inc.php, bills.inc.php, device_mibs.inc.php, device_oids.inc.php, edit-ports.inc.php, eventlog.inc.php, inventory.inc.php, ix-list.inc.php, ix-peers.inc.php, mempool-edit.inc.php, mempool.inc.php, mibs.inc.php, poll-log.inc.php, processor-edit.inc.php, processor.inc.php, routing-edit.inc.php, sensors-common.inc.php, storage-edit.inc.php, storage.inc.php, tnmsneinfo.inc.php, and toner.inc.php (in includes/html/table).
Published: 2026-08-26
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Database compromise via authenticated SQL injection
Action: Patch Now
AI Analysis

Impact

A classic SQL injection flaw was discovered in LibreNMS 1.65, where an attacker who can log in with normal privileges can craft input for the sort parameter in the /ajax_table.php API endpoint. By doing so the attacker can extract the entire content of the LibreNMS database, exposing network asset data, configuration details, system logs, and other sensitive information.

Affected Systems

All installations running LibreNMS version 1.65 before the 1.65.1 release are affected. The flaw is present in many include files used throughout the interface. Versions newer than or equal to 1.65.1 contain the fix, and no additional product lines are listed.

Risk and Exploitability

At the time of disclosure, the CVSS score was 8.8 and the EPSS score was below 1%. The vulnerability is not listed in CISA KEV. Because it requires only normal authenticated access, any user that can log in can send a crafted HTTP request to the vulnerable endpoint. No public exploit was reported, but the impact is a total loss of confidentiality of the database.

Generated by OpenCVE AI on September 2, 2026 at 00:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade LibreNMS to version 1.65.1 or later to remove the vulnerable sort handling.
  • Add input validation on the sort parameter so that only legitimate field names or numeric values are accepted, preventing injection into database queries.
  • Apply least‑privilege access controls, limiting the account types that can reach the Ajax table endpoint to only those who truly need it.
  • If the Ajax table feature is not required for operations, consider disabling or blocking access to /ajax_table.php to eliminate the entry point.

Generated by OpenCVE AI on September 2, 2026 at 00:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 08:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 02 Sep 2026 00:45:00 +0000

Type Values Removed Values Added
Title Authenticated SQL Injection via Sort Parameter in LibreNMS AJAX API

Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Wed, 26 Aug 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Librenms
Librenms librenms
Vendors & Products Librenms
Librenms librenms

Wed, 26 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Title Authenticated SQL Injection via Sort Parameter in LibreNMS AJAX API
Weaknesses CWE-89

Wed, 26 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Description An issue was discovered in LibreNMS 1.65. A remote authenticated attacker with normal privileges can extract all the information from the LibreNMS database via a SQL injection in the sort parameter in the /ajax_table.php API endpoint. This affects address-search.inc.php, alertlog.inc.php, arp-search.inc.php, as-selection.inc.php, bills.inc.php, device_mibs.inc.php, device_oids.inc.php, edit-ports.inc.php, eventlog.inc.php, inventory.inc.php, ix-list.inc.php, ix-peers.inc.php, mempool-edit.inc.php, mempool.inc.php, mibs.inc.php, poll-log.inc.php, processor-edit.inc.php, processor.inc.php, routing-edit.inc.php, sensors-common.inc.php, storage-edit.inc.php, storage.inc.php, tnmsneinfo.inc.php, and toner.inc.php (in includes/html/table).
References

Subscriptions

Librenms Librenms
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-01T18:35:25.283Z

Reserved: 2020-07-21T00:00:00.000Z

Link: CVE-2020-15876

cve-icon Vulnrichment

Updated: 2026-09-01T18:35:19.536Z

cve-icon NVD

Status : Deferred

Published: 2026-08-26T17:16:45.080

Modified: 2026-09-03T17:52:51.960

Link: CVE-2020-15876

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T00:30:04Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')