CVE-2019-12463 Improper Encoding or Escaping of Output and Injection in LibreNMS

High 8.8 Published Updated

Authenticated attackers can inject RRDtool syntax via graph parameters to execute commands, read files, or cause denial of service in 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-2019-12463?

CVE-2019-12463 is a high-severity command 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. The scripts that handle graphing options (includes/html/graphs/common.inc.php and includes/html/graphs/graphs.inc.php) do not sufficiently validate or encode several fields of user supplied input. Some parameters are filtered with mysqli_real_escape_string, which is only useful for preventing SQL injection attacks; other parameters are unfiltered. This allows an attacker to inject RRDtool syntax with newline characters via the html/graph.php and html/graph-realtime.php scripts. RRDtool syntax is quite versatile and an attacker could leverage this to perform a number of attacks, including disclosing directory structure and filenames, disclosing file content, denial of service, or writing arbitrary files. NOTE: relative to CVE-2019-10665, this requires authentication and the pathnames differ.

Weakness: CWE-74, CWE-116

Which versions are affected by CVE-2019-12463?

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

PackageAffectedFixed in
librenms/librenms PackagistFrom 1.50.11.53
librenms/librenms PackagistFrom 1.50.11.53

Products include Librenms Librenms.

How do I fix CVE-2019-12463?

Upgrade librenms/librenms to 1.53 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2019-12463 being exploited?

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

All Librenms Librenms vulnerabilities

Sources

Also known as GHSA-w5r2-gvgf-mpm8.

Is CVE-2019-12463 in your software?

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

Check your SBOMs for free