CVE-2024-32461 LibreNMS vulnerable to time-based SQL injection that leads to database extraction

High 7.1 Published Updated

An attacker with read privileges can exploit SQL injection to extract database contents, including administrator credentials, from LibreNMS.

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-2024-32461?

CVE-2024-32461 is a high-severity SQL injection vulnerability in Librenms Librenms, published on 22 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. A SQL injection vulnerability in POST /search/search=packages in LibreNMS prior to version 24.4.0 allows a user with global read privileges to execute SQL commands via the package parameter. With this vulnerability, an attacker can exploit a SQL injection time based vulnerability to extract all data from the database, such as administrator credentials. Version 24.4.0 contains a patch for the vulnerability.

Weakness: CWE-89

Which versions are affected by CVE-2024-32461?

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

PackageAffectedFixed in
librenms/librenms PackagistAll versions24.4.0
librenms/librenms PackagistAll versions24.4.0

Products include Librenms Librenms.

How do I fix CVE-2024-32461?

Upgrade librenms/librenms to 24.4.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-2024-32461 being exploited?

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

All Librenms Librenms vulnerabilities

Sources

Also known as GHSA-cwx6-cx7x-4q34.

Is CVE-2024-32461 in your software?

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

Check your SBOMs for free