CVE-2020-35700 SQL Injection in librenms

High 8.8 Published Updated

Authenticated attackers can execute arbitrary SQL commands via the sort_order parameter in the Top Devices widget, potentially compromising network monitoring data.

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-2020-35700?

CVE-2020-35700 is a high-severity SQL injection vulnerability in Librenms Librenms, published on 8 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A second-order SQL injection issue in Widgets/TopDevicesController.php (aka the Top Devices dashboard widget) of LibreNMS before 21.1.0 allows remote authenticated attackers to execute arbitrary SQL commands via the sort_order parameter against the /ajax/form/widget-settings endpoint.

Weakness: CWE-89

Which versions are affected by CVE-2020-35700?

2 open source packages ship an affected version, including librenms/librenms. It affects 1 product.

PackageAffectedFixed in
librenms/librenms PackagistAll versions21.1.0
librenms/librenms PackagistAll versions21.1.0

Products include Librenms Librenms.

How do I fix CVE-2020-35700?

Upgrade librenms/librenms to 21.1.0 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-2020-35700 being exploited?

There is no known exploitation of CVE-2020-35700 in the wild and no public exploit code.

All Librenms Librenms vulnerabilities

Sources

Also known as GHSA-h59f-p56g-g75v.

Is CVE-2020-35700 in your software?

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

Check your SBOMs for free