Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.1

CVE-2019-10666: LibreNMS lets attackers run code via crafted request

CVE-2019-10666 · published 7 years ago
Summary

LibreNMS versions up to 1.47 include scripts that load files based on user input without checking the name. An attacker who can control the file name and place a malicious file on the server can cause the system to execute their own PHP code. Upgrade LibreNMS to a patched version or apply a filter that validates and restricts the file names used in includes.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
librenms librenms <= 1.47
cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*
Original advisory text
An issue was discovered in LibreNMS through 1.47. Several of the scripts perform dynamic script inclusion via the include() function on user supplied input without sanitizing the values by calling ...
An issue was discovered in LibreNMS through 1.47. Several of the scripts perform dynamic script inclusion via the include() function on user supplied input without sanitizing the values by calling basename() or a similar function. An attacker can leverage this to execute PHP code from the included file. Exploitation of these scripts is made difficult by additional text being appended (typically .inc.php), which means an attacker would need to be able to control both a filename and its content on the server. However, exploitation can be achieved as demonstrated by the csv.php?report=../ substring.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker full control (estimated)
Severity
8.1 High
Exploitation
1% chance of attack within 30 days
Type
CWE-829Inclusion of Functionality from Untrusted Control Sphere
Timeline
Published9 Sep 2019
Updated4 Nov 2026
First seen29 Sep 2026
Sources
Track software like this
Free during beta