CVE-2018-20678 LibreNMS SQL Injection
Authenticated users can execute arbitrary SQL commands via the sort parameter in LibreNMS, potentially accessing or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-20678?
CVE-2018-20678 is a high-severity SQL injection vulnerability in Librenms Librenms, published on 28 Mar 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
LibreNMS through 1.47 allows SQL injection via the html/ajax_table.php sort[hostname] parameter, exploitable by authenticated users during a search.
Weakness: CWE-89
Which versions are affected by CVE-2018-20678?
2 open source packages ship an affected version, including librenms/librenms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
librenms/librenms Packagist | All versions | 1.65 |
librenms/librenms Packagist | All versions | 1.65 |
Products include Librenms Librenms.
How do I fix CVE-2018-20678?
Upgrade librenms/librenms to 1.65 or later.
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-2018-20678 being exploited?
There is no known exploitation of CVE-2018-20678 in the wild and no public exploit code.
Other vulnerabilities in Librenms Librenms
Sources
Also known as GHSA-4fwh-r866-pvh9.