{"id":"CVE-2019-10665","details":"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 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 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.","aliases":["GHSA-q5rg-wg7h-73m5"],"modified":"2026-07-08T15:54:12.672438Z","published":"2019-09-09T13:15:11.277Z","references":[{"type":"EVIDENCE","url":"https://www.darkmatter.ae/xen1thlabs/librenms-rrdtool-injection-vulnerability-xl-19-023/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/librenms/librenms","events":[{"introduced":"0"},{"last_affected":"03d6d76908b21612988af0ab112a787863ba183a"}],"database_specific":{"cpe":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"1.47"}],"source":"CPE_RANGE"}}],"versions":["1.47","1.46","1.45","1.44","1.43","1.42.01","1.42","1.41","1.40","1.39","1.38","1.37","1.36","1.35","1.33","1.32","1.31.03","1.31.02","1.31.01","1.28","1.27","1.26","1.25","1.21","201609","1.20","20160828","1.19","201608","201607","201606","201605","201604","201603","201602","201601","201512","201511","201510","201509","201508","201507","201505","201506","0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-10665.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}