CVE-2019-10666 Code injection in n/a

High 8.1 Published Updated

Attackers can execute arbitrary PHP code in LibreNMS via unsafe dynamic script inclusion in specific scripts.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2019-10666?

CVE-2019-10666 is a high-severity code injection vulnerability in Librenms Librenms, published on 9 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-829

Which versions are affected by CVE-2019-10666?

It affects 1 product.

Products include Librenms Librenms.

How do I fix CVE-2019-10666?

No fix has been published for CVE-2019-10666 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2019-10666 being exploited?

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

All Librenms Librenms vulnerabilities

Sources

Also known as GHSA-wqrq-32pw-4wj8.

Is CVE-2019-10666 in your software?

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

Check your SBOMs for free