# CVE-2020-35700: SQL Injection in librenms

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.37%, higher than 84% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-08T08:08:15.000Z
- Modified: 2026-06-17T03:14:08.533Z
- Also known as: GHSA-h59f-p56g-g75v
- Weaknesses: CWE-89
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- librenms/librenms (Packagist): before 21.1.0
- librenms librenms: before 21.1.0

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://www.horizon3.ai/disclosures/librenms-second-order-sqli> (exploit, third-party-advisory, web)
- <https://github.com/librenms/librenms/blob/master/app/Http/Controllers/Widgets/TopDevicesController.php> (third-party-advisory, web)
- <https://github.com/librenms/librenms/issues/12405> (third-party-advisory, web)
- <https://github.com/librenms/librenms/pull/12422> (patch, third-party-advisory, web)
- <https://github.com/librenms/librenms/releases/tag/21.1.0> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-35700> (advisory)

## Sources

- CVE List: [CVE-2020-35700](https://www.cve.org/CVERecord?id=CVE-2020-35700), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-h59f-p56g-g75v](https://github.com/advisories/GHSA-h59f-p56g-g75v), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-35700](https://nvd.nist.gov/vuln/detail/CVE-2020-35700), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-35700 · Whole record: https://cve.day/CVE-2020-35700.json · Rebuilt by cve.day 2026-11-25T22:57:57.287Z
