{"id":"GHSA-w5r2-gvgf-mpm8","summary":"Improper Encoding or Escaping of Output and Injection in LibreNMS","details":"An issue was discovered in LibreNMS 1.50.1. The scripts that handle graphing options (includes/html/graphs/common.inc.php and includes/html/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 and html/graph-realtime.php scripts. RRDtool syntax is quite versatile and an attacker could leverage this to perform a number of attacks, including disclosing directory structure and filenames, disclosing file content, denial of service, or writing arbitrary files. NOTE, relative to CVE-2019-10665, this requires authentication and the pathnames differ.","aliases":["CVE-2019-12463"],"modified":"2024-02-16T08:24:07.367607Z","published":"2019-10-11T18:43:13Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2019-09-25T12:52:31Z","nvd_published_at":"2019-09-09T14:15:00Z","cwe_ids":["CWE-116","CWE-74"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12463"},{"type":"WEB","url":"https://www.darkmatter.ae/xen1thlabs/librenms-rrdtool-injection-vulnerability-xl-19-022"}],"affected":[{"package":{"name":"librenms/librenms","ecosystem":"Packagist","purl":"pkg:composer/librenms/librenms"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.50.1"},{"fixed":"1.53"}]}],"versions":["1.50.1","1.51","1.52"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-w5r2-gvgf-mpm8/GHSA-w5r2-gvgf-mpm8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}