/

CVE-2026-86427

Severity:

HIGH RISK

(8.8)

Argument Injection (CWE-77) in LibreNMS Graph Titles

CVE-2026-86427

Analyzed

Vulnerability type

Category:

Argument Injection

CWE:

CWE-77

Impact:

Unauthorized Data Access and Command Execution

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

LibreNMS versions before 26.8.0 contain an argument injection vulnerability in the graph_title parameter. An authenticated attacker may inject rrdtool arguments or commands, potentially reading RRD data from unauthorized devices and bypassing per-device authorization checks.

Affected context

The vulnerability occurs in LibreNMS graph generation when the graph_title parameter is incorporated into rrdtool command processing. It becomes risky when an authenticated user can submit a title that escapes the application's intended quoting or argument-boundary handling, allowing attacker-controlled options or command content to reach rrdtool.

Exploit preconditions

  • Attack surface: LibreNMS graph-generation functionality
  • Required access: Authenticated access sufficient to influence graph_title
  • Trigger point: Processing a graph request that passes the supplied title to rrdtool
  • Why exploitation is possible: Inadequate quote and argument-boundary handling permits attacker-controlled input to be interpreted as additional rrdtool arguments or commands

Why this happens

The underlying bug is an argument injection flaw mapped to CWE-77: Improper Neutralization of Special Elements used in a Command. User-controlled graph metadata is processed through a command-oriented interface without reliably preserving it as a single data value. As a result, quoting can be bypassed and input may be interpreted as additional rrdtool directives rather than ordinary graph text.

Potential impact

  • An authenticated attacker may read RRD files associated with unauthorized devices.
  • The attacker could bypass intended per-device authorization checks.
  • Arbitrary rrdtool commands may be executed within the application's permitted runtime context.
  • Confidential monitoring data could be disclosed or manipulated.
  • The vulnerable service account or host may be exposed to further compromise, depending on its privileges.

General mitigation guidance

Mitigation generally focuses on separating data from command syntax and reducing trust in user-controlled graph metadata.

Common defensive patterns include:

  • Invoke rrdtool through a structured API or argument-vector interface rather than concatenated command strings.
  • Treat graph titles strictly as data and apply context-appropriate encoding without relying solely on escaping.
  • Allow only a constrained character set or validated format for graph titles.
  • Enforce authorization checks independently for every requested device and RRD resource.
  • Run graph-generation components with least privilege and restrict their filesystem access.
  • Apply secure-by-default command execution policies that reject unexpected options, separators, and control characters.

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis that identifies shell or command construction involving graph_title or other request parameters.
  • Code review checks for string concatenation, interpolation, or incomplete quoting around rrdtool invocations.
  • Tests that verify user-controlled titles remain a single argument and cannot alter selected files, options, or commands.
  • Runtime monitoring for unusual rrdtool arguments, access to RRD files belonging to other devices, and unexpected control characters in graph requests.
  • Authorization-policy tests confirming that graph requests cannot cross device boundaries.
  • Neutral automated security review tools that flag command and argument injection patterns.

Sources

SourceLink
github.comgithub.com/librenms/librenms/security/advisories/GHSA-3hvv-wxpw-cx83
vulncheck.comvulncheck.com/advisories/librenms-before-26.8.0-argument-injection-via-graph-title

Frequently asked

questions

It may be exploitable through the LibreNMS graph functionality when that interface is reachable and the attacker has the required authenticated privileges.

The attacker generally needs authenticated access that allows control of the graph_title parameter or access to a graph-generation workflow that processes it.

Keep user input separate from command syntax by using structured process interfaces, strict validation, and authorization checks that are independent of graph rendering.

Review all command construction paths, treat metadata as untrusted input, reject unexpected control characters and options, enforce least privilege, and test that user input cannot change resource selection or command behavior.

Find out what's already
exploitable in your codebase.