CVE-2020-15873 LibreNMS SQL Injection vulnerability

Medium 6.5 Published Updated

An authenticated attacker can execute arbitrary SQL commands via the device_id parameter in LibreNMS, potentially compromising database integrity and confidentiality.

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-15873?

CVE-2020-15873 is a medium-severity SQL injection vulnerability in Librenms Librenms, published on 21 Jul 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In LibreNMS before 1.65.1, an authenticated attacker can achieve SQL Injection via the customoid.inc.php device_id POST parameter to ajax_form.php.

Weakness: CWE-89

Which versions are affected by CVE-2020-15873?

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

PackageAffectedFixed in
librenms/librenms PackagistAll versions1.65.1
librenms/librenms PackagistAll versions1.65.1

Products include Librenms Librenms.

How do I fix CVE-2020-15873?

Upgrade librenms/librenms to 1.65.1 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-15873 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Librenms Librenms vulnerabilities

Sources

Also known as GHSA-g5r6-vrmx-9gwj.

Is CVE-2020-15873 in your software?

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

Check your SBOMs for free