Command Injection Affecting librenms/librenms package, versions <1.50.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Mature
EPSS
83.96% (99th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-LIBRENMSLIBRENMS-466431
  • published9 Sept 2019
  • disclosed9 Sept 2019
  • creditEldar Marcussen

Introduced: 9 Sep 2019

CVE-2019-10669  (opens in a new tab)
CWE-94  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade librenms/librenms to version 1.50.1 or higher.

Overview

librenms/librenms is a fully featured network monitoring system that provides a wealth of features and device support.

Affected versions of this package are vulnerable to Command Injection. It is possible to inject arbitrary commands in html/includes/graphs/device/collectd.inc.php where user supplied parameters are filtered with the mysqli_escape_real_string function. This function is not the appropriate function to sanitize command arguments as it does not escape a number of command line syntax characters such as backticks, allowing an attacker to inject commands into the variable $rrd_cmd, which gets executed via passthru().

CVSS Scores

version 3.1