CVE-2019-12465 SQL Injection in LibreNMS
Attackers can execute arbitrary SQL commands via the term parameter in ajax_rulesuggest.php, potentially reading 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-2019-12465?
CVE-2019-12465 is a high-severity SQL injection vulnerability in Librenms Librenms, published on 9 Sep 2019. 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.50.1. A SQL injection flaw was identified in the ajax_rulesuggest.php file where the term parameter is used insecurely in a database query for showing columns of a table, as demonstrated by an ajax_rulesuggest.php?debug=1&term= request.
Weakness: CWE-89
Which versions are affected by CVE-2019-12465?
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.53 |
librenms/librenms Packagist | All versions | 1.53 |
Products include Librenms Librenms.
How do I fix CVE-2019-12465?
Upgrade librenms/librenms to 1.53 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-2019-12465 being exploited?
There is no known exploitation of CVE-2019-12465 in the wild and no public exploit code.
Other vulnerabilities in Librenms Librenms
Sources
Also known as GHSA-878x-85hc-gc4g.