An issue was discovered in LibreNMS 1.65. A remote authenticated attacker with normal privileges can execute arbitrary shell commands through a command injection in the /graph.php API endpoint.
https://www.shielder.com/advisories/librenms-graph-authenticated-command-injection/
https://github.com/librenms/librenms/releases/tag/1.65.1