{"id":"CVE-2020-35700","details":"A second-order SQL injection issue in Widgets/TopDevicesController.php (aka the Top Devices dashboard widget) of LibreNMS before 21.1.0 allows remote authenticated attackers to execute arbitrary SQL commands via the sort_order parameter against the /ajax/form/widget-settings endpoint.","aliases":["GHSA-h59f-p56g-g75v"],"modified":"2026-07-08T20:42:43.568154Z","published":"2021-02-08T09:15:12.463Z","references":[{"type":"ADVISORY","url":"https://github.com/librenms/librenms/blob/master/app/Http/Controllers/Widgets/TopDevicesController.php"},{"type":"ADVISORY","url":"https://github.com/librenms/librenms/issues/12405"},{"type":"ADVISORY","url":"https://github.com/librenms/librenms/releases/tag/21.1.0"},{"type":"FIX","url":"https://github.com/librenms/librenms/pull/12422"},{"type":"EVIDENCE","url":"https://www.horizon3.ai/disclosures/librenms-second-order-sqli"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/librenms/librenms","events":[{"introduced":"0"},{"fixed":"58a740cf818494c06f4f3fe90ecccb58e08f0ffd"}],"database_specific":{"cpe":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"21.1.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["1.70.1","1.70.0","1.69","1.68","1.67","1.66","1.65","1.64.1","1.64","1.63","1.62","1.61","1.60","1.59","1.58.1","1.58","1.57","1.56","1.55","1.54","1.53.1","1.53","1.52","1.51","1.50","1.49","1.48.1","1.48","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-2020-35700.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}