CVE-2026-6204

Authenticated Remote Code Execution via Binary Locations and Netcommand

Published Apr 13, 2026 CVSS 4.0 · 8.5 High EPSS 7.7% KEV · Not listed
Description
LibreNMS versions before 26.3.0 are affected by an authenticated remote code execution vulnerability by abusing the Binary Locations config and the Netcommand feature. Successful exploitation requires administrative privileges. Exploitation could result in compromise of the underlying web server.

Analysis

AI-generated

Technical impact

LibreNMS versions older than 26.3.0 contain a flaw that lets an authenticated administrator alter the Binary Locations configuration and use the Netcommand feature to inject and execute arbitrary operating‑system commands. This command‑injection weakness (CWE‑78) gives the attacker full control of the web server’s environment and can lead to compromise of the host operating system. Because the flaw requires administrative privileges, the impact is limited to users who can log into the web interface with admin rights, but any such user can achieve remote code execution.

Affected Systems

Affected deployments are those running LibreNMS releases earlier than 26.3.0. Only the librenms:librenms product is impacted; all other applications or services are unaffected unless they ship this code base internally.

Risk and Exploitability

The CVSS score of 8.5 signals a high severity vulnerability, and an EPSS score of 8% indicates a moderate likelihood that attackers will target this weakness. The flaw is not currently tracked in the CISA KEV catalog. Exploitation requires an authenticated session with administrative rights; the attacker must log into the web console, modify the Binary Locations setting to reference a malicious executable, and then trigger Netcommand to cause the server to run that code. Once executed, the attacker can gain full control of the underlying operating system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor’s patch by upgrading to LibreNMS 26.3.0 or later.
  • Restrict administrative access to only trusted personnel and enforce strict role‑based access controls; remove or disable the Binary Locations configuration and Netcommand feature if they are not required.
  • Validate and sanitize all inputs that populate the Binary Locations configuration; reject absolute paths or paths not within a whitelisted directory, or disable the feature entirely as a temporary workaround.
  • Consider applying network segmentation to isolate LibreNMS servers from critical infrastructure so that even if code execution occurs, lateral movement is limited.

Generated by OpenCVE AI on October 25, 2026 at 19:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-pr3g-phhr-h8fh LibreNMS is Vulnerable to Remote Code Execution by Arbitrary File Write
History
Type Values Removed Values Added
Title Authenticated Remote Code Execution via Binary Locations and Netcommand
Type Values Removed Values Added
Title Authenticated Remote Code Execution via Binary Locations and Netcommand in LibreNMS
Type Values Removed Values Added
Title Authenticated Remote Code Execution via Binary Locations and Netcommand in LibreNMS
Type Values Removed Values Added
Title Authenticated Remote Code Execution via Binary Locations in LibreNMS
Type Values Removed Values Added
CPEs cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Title Authenticated Remote Code Execution via Binary Locations in LibreNMS
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Librenms
Librenms librenms
Vendors & Products Librenms
Librenms librenms
Type Values Removed Values Added
Description LibreNMS versions before 26.3.0 are affected by an authenticated remote code execution vulnerability by abusing the Binary Locations config and the Netcommand feature. Successful exploitation requires administrative privileges. Exploitation could result in compromise of the underlying web server.
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
PRJBLK
Published
Updated
Apr 13, 2026, 12:43 PM
Reserved
Apr 13, 2026, 10:42 AM
Status
Analyzed
Published
Apr 13, 2026, 11:16 AM
Modified
Jun 17, 2026, 11:00 AM