CVE-2020-15876 SQL injection in n/a
Authenticated attackers can extract all database information via SQL injection in the sort parameter of the ajax_table.php endpoint.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-15876?
CVE-2020-15876 is a high-severity SQL injection vulnerability in n/a, published on 26 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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).
Weakness: CWE-89
Which versions are affected by CVE-2020-15876?
How do I fix CVE-2020-15876?
No fix has been published for CVE-2020-15876 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2020-15876 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-15876 exists.
Sources
Also known as GHSA-2658-wj4j-m387.