CVE-2019-12465 SQL Injection in LibreNMS

High 8.1 Published Updated

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.

PackageAffectedFixed in
librenms/librenms PackagistAll versions1.53
librenms/librenms PackagistAll versions1.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.

All Librenms Librenms vulnerabilities

Sources

Also known as GHSA-878x-85hc-gc4g.

Is CVE-2019-12465 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free