LibreNMS SQL Injection Vulnerability in librenms/librenms

librenms/librenms Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
6.5

CVE-2020-15873: LibreNMS SQL Injection vulnerability. Affects librenms/librenms versions < 1.65.1. Fixed in 1.65.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

LibreNMS is an open-source network monitoring and management tool. It provides a comprehensive set of features for monitoring network devices, collecting performance data, and generating alerts. The librenms/librenms package is the core component of LibreNMS, responsible for handling device data and interactions. Unfortunately, this package is vulnerable to a SQL Injection attack.

Vulnerability Detail

The SQL Injection vulnerability in LibreNMS before version 1.65.1 allows an authenticated attacker to exploit the customoid.inc.php file by manipulating the device_id parameter in the POST request to ajax_form.php. By injecting malicious SQL code, an attacker can execute unauthorized database queries, potentially gaining unauthorized access to sensitive information or modifying the database. This vulnerability has a CVSS score of 6.5, indicating a moderate severity level.

How To Fix

Minimum fixed version

1.65.1

This is the first release that contains the fix.

composer require librenms/librenms:1.65.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround is to disable the affected functionality or implement input validation and sanitization measures to prevent SQL Injection attacks. It is crucial to thoroughly review and test any custom modifications or workarounds to ensure they effectively mitigate the vulnerability without introducing new security risks.

Conclusion

The SQL Injection vulnerability in the librenms/librenms package of LibreNMS can be exploited by an authenticated attacker to execute unauthorized database queries. To mitigate this vulnerability, it is crucial to upgrade to LibreNMS version 1.65.1 or later. Alternatively, implementing input validation and sanitization measures can serve as a temporary workaround. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for librenms/librenms →

Share this vulnerability

FAQ

LibreNMS is an open-source network monitoring and management tool that provides comprehensive features for monitoring network devices, collecting performance data, and generating alerts.

SQL Injection is a type of security vulnerability that allows an attacker to manipulate SQL queries by injecting malicious SQL code. This can lead to unauthorized access to sensitive information or modification of the database.

The SQL Injection vulnerability in LibreNMS allows an authenticated attacker to execute unauthorized database queries, potentially gaining access to sensitive information or modifying the database.

This vulnerability has a CVSS score of 6.5, indicating a moderate severity level.

To fix this vulnerability, it is recommended to upgrade to LibreNMS version 1.65.1 or later. This version includes a patch that prevents the SQL Injection attack.

Related vulnerabilities

Recent vulnerabilities recorded for librenms/librenms.

How To Fix

Minimum fixed version

1.65.1

This is the first release that contains the fix.

composer require librenms/librenms:1.65.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback