HIGH8.8
GHSA-h59f-p56g-g75v
SQL Injection in librenms
Quick fix
GHSA-h59f-p56g-g75v — librenms/librenms: upgrade to the fixed version with the command below.
composer require librenms/librenms:^21.1.0Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/librenms/librenms
Introduced in:
0Fixed in: 21.1.0Fix
composer require librenms/librenms:^21.1.0References
- https://nvd.nist.gov/vuln/detail/CVE-2020-35700[ADVISORY]
- https://github.com/librenms/librenms/issues/12405[WEB]
- https://github.com/librenms/librenms/pull/12422[WEB]
- https://github.com/librenms/librenms/blob/master/app/Http/Controllers/Widgets/TopDevicesController.php[WEB]
- https://github.com/librenms/librenms/releases/tag/21.1.0[WEB]
- https://www.horizon3.ai/disclosures/librenms-second-order-sqli[WEB]