# CVE-2020-15874: LibreNMS command injection in graph.php API

Source: https://junglewise.ai/threats/cve-2020-15874-librenms-command-injection-in-graph-php-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-26. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2020-15874 · Severity: high · CVSS 8.8 · Published 2026-08-26

LibreNMS is a network management platform that monitors and manages devices across networks. A flaw in version 1.65 allows authenticated users with normal privileges to execute arbitrary shell commands through the /graph.php API endpoint, potentially giving attackers the ability to compromise the entire monitoring infrastructure and access sensitive network data.

Technologies: [Librenms](https://junglewise.ai/threats/technologies/librenms). Vendors: [Librenms](https://junglewise.ai/threats/vendors/librenms).

## Quick answers

**Is CVE-2020-15874 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-15874 being exploited in the wild.

**How severe is CVE-2020-15874?** High severity, with a CVSS score of 8.8, published 26 August 2026.

**Which products and versions are affected?** Librenms 1.65.

**Is there a fix for CVE-2020-15874?** A patch was published on 2020-07-10: Fixed in LibreNMS 1.65.1 with input sanitization commit 1bb6bd8 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2020-15874 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2020-15874?** Check whether you run Librenms at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

This vulnerability is a command injection flaw in the /graph.php API endpoint of LibreNMS 1.65. An authenticated attacker with normal user privileges can inject arbitrary shell commands through unsanitized input parameters. The attack requires network access to the LibreNMS API and valid authentication credentials, but no elevated privileges are needed. Successful exploitation allows remote code execution with the privileges of the LibreNMS application user, enabling full compromise of the monitoring system. The issue was patched in version 1.65.1 (released July 10, 2020), with commits addressing input sanitization in the graph title handling.

## Affected products

- LibreNMS LibreNMS 1.65

## Timeline

- 2020-07-09: disclosed: Vulnerability identified and fixes prepared
- 2020-07-10: patched: Fixed in LibreNMS 1.65.1 with input sanitization commit 1bb6bd8

## References

- [https://community.librenms.org/c/announcements](https://community.librenms.org/c/announcements)
- [https://github.com/librenms/librenms/compare/1.65...1.65.1](https://github.com/librenms/librenms/compare/1.65...1.65.1)

## Related threats

- [LibreNMS LDAP filter injection in external authorization modes](https://junglewise.ai/threats/cve-2026-109357-librenms-before-26-9-0-contains-an-ldap-filter-injection-in-ldap)
- [LibreNMS missing authorization in PortsController::purge](https://junglewise.ai/threats/cve-2026-109356-librenms-before-26-9-0-contains-a-missing-authorization)
- [LibreNMS stored cross-site scripting in Oxidized node list](https://junglewise.ai/threats/cve-2026-109355-librenms-before-26-9-0-contains-a-stored-cross-site-scripting)
- [LibreNMS path traversal in NFSen channel parameter](https://junglewise.ai/threats/cve-2026-109354-librenms-before-26-9-0-contains-a-path-traversal-vulnerability)
- [LibreNMS SQL injection in notifications.inc.php](https://junglewise.ai/threats/cve-2026-109353-librenms-before-26-9-0-contains-an-sql-injection-vulnerability)
