CVE-2019-10665: SQL Injection

Published Sep 9, 2019
·
Updated

An issue was discovered in LibreNMS through 1.47. The scripts that handle the graphing options (html/includes/graphs/common.inc.php and html/includes/graphs/graphs.inc.php) do not sufficiently validate or encode several fields of user supplied input. Some parameters are filtered with mysqlirealescapestring, 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 script. RRDtool syntax is quite versatile and an attacker could leverage this to perform a number of attacks, including disclosing directory structure and filenames, file content, denial of service, or writing arbitrary files.

Other sources

An issue was discovered in LibreNMS through 1.47. The scripts that handle the graphing options (html/includes/graphs/common.inc.php and html/includes/graphs/graphs.inc.php) do not sufficiently validate or encode several fields of user supplied input. Some parameters are filtered with mysqlirealescapestring, 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 script. RRDtool syntax is quite versatile and an attacker could leverage this to perform a number of attacks, including disclosing directory structure and filenames, file content, denial of service, or writing arbitrary files.

Affected Software

2 affected components
composer/librenms/librenms<=1.47
librenms librenms<=1.47

Event History

Sep 9, 2019
CVE Published
via MITRE·12:56 PM
Data Sourced
via MITRE·12:56 PM
Description
May 24, 2022
Advisory Published
04:55 PM

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2019-10665.

2

What is the severity level of CVE-2019-10665?

CVE-2019-10665 has a severity level of 9.8 (Critical).

3

What software versions are affected by CVE-2019-10665?

The following software versions are affected by CVE-2019-10665: LibreNMS up to and including version 1.47.

4

How can I fix CVE-2019-10665?

To fix CVE-2019-10665, update LibreNMS to version 1.48 or later.

5

What are some additional references for CVE-2019-10665?

Additional references for CVE-2019-10665 can be found at the following URLs: [Reference 1](https://nvd.nist.gov/vuln/detail/CVE-2019-10665), [Reference 2](https://www.darkmatter.ae/xen1thlabs/librenms-rrdtool-injection-vulnerability-xl-19-023/), [Reference 3](https://github.com/spaceraccoon/CVE-2020-10665).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203