GHSA-798h-hpph-m24j: Linuxfabrik Monitoring Plugins have local privilege escalation using embedded command
Linuxfabrik Monitoring Plugins contain a local privilege escalation vulnerability due to unsafe use of shell_exec with user input. Specifically, user-supplied arguments are embedded directly into shell commands without proper escaping, allowing command injection. This is especially critical for plugins run with sudo privileges, enabling attackers controlling the nagios user to execute arbitrary commands as root. The vulnerability is fixed by changing the command execution to use argument arrays without shell interpretation, preventing injection. Versions prior to 5.0.0 of linuxfabrik-lib are affected.
AI Analysis
Technical Summary
The vulnerability arises from the use of shell_exec in Linuxfabrik Monitoring Plugins where user input is directly embedded into shell command strings. For example, the restic-check plugin places the --repo argument inside a shell_exec command string, allowing an attacker to inject additional commands separated by pipe characters. This enables local privilege escalation when the plugin is run with elevated privileges, such as via sudo for the nagios user. The fix involves removing the pipe-based command splitting and requiring commands to be passed as argument arrays to shell_exec, which disables shell interpretation and injection. Additional safeguards include escaping positional arguments and building argument lists to prevent option injection. The vulnerability is tracked as CVE-2026-55426 and affects linuxfabrik-lib versions before 5.0.0, with fixes included in linuxfabrik-lib 5.0.0 and Monitoring Plugins releases after v5.2.0.
Potential Impact
This vulnerability allows a local attacker with control over the nagios user to escalate privileges to root by injecting arbitrary commands into plugin arguments that are executed with elevated privileges. The impact includes full system compromise due to root access. The CVSS 3.1 vector rates this as AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local attack vector, low attack complexity, required privileges as low (nagios user), no user interaction, unchanged scope, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in linuxfabrik-lib version 5.0.0 and Linuxfabrik Monitoring Plugins releases after v5.2.0. These versions remove the vulnerable pipe-based command splitting and require commands to be passed as argument arrays to shell_exec, eliminating shell injection risks. Users should upgrade to these fixed versions. The vendor advisory does not indicate any alternative mitigations or temporary workarounds. Patch status is confirmed by the vendor advisory.
GHSA-798h-hpph-m24j: Linuxfabrik Monitoring Plugins have local privilege escalation using embedded command
Description
Linuxfabrik Monitoring Plugins contain a local privilege escalation vulnerability due to unsafe use of shell_exec with user input. Specifically, user-supplied arguments are embedded directly into shell commands without proper escaping, allowing command injection. This is especially critical for plugins run with sudo privileges, enabling attackers controlling the nagios user to execute arbitrary commands as root. The vulnerability is fixed by changing the command execution to use argument arrays without shell interpretation, preventing injection. Versions prior to 5.0.0 of linuxfabrik-lib are affected.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from the use of shell_exec in Linuxfabrik Monitoring Plugins where user input is directly embedded into shell command strings. For example, the restic-check plugin places the --repo argument inside a shell_exec command string, allowing an attacker to inject additional commands separated by pipe characters. This enables local privilege escalation when the plugin is run with elevated privileges, such as via sudo for the nagios user. The fix involves removing the pipe-based command splitting and requiring commands to be passed as argument arrays to shell_exec, which disables shell interpretation and injection. Additional safeguards include escaping positional arguments and building argument lists to prevent option injection. The vulnerability is tracked as CVE-2026-55426 and affects linuxfabrik-lib versions before 5.0.0, with fixes included in linuxfabrik-lib 5.0.0 and Monitoring Plugins releases after v5.2.0.
Potential Impact
This vulnerability allows a local attacker with control over the nagios user to escalate privileges to root by injecting arbitrary commands into plugin arguments that are executed with elevated privileges. The impact includes full system compromise due to root access. The CVSS 3.1 vector rates this as AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local attack vector, low attack complexity, required privileges as low (nagios user), no user interaction, unchanged scope, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in linuxfabrik-lib version 5.0.0 and Linuxfabrik Monitoring Plugins releases after v5.2.0. These versions remove the vulnerable pipe-based command splitting and require commands to be passed as argument arrays to shell_exec, eliminating shell injection risks. Users should upgrade to these fixed versions. The vendor advisory does not indicate any alternative mitigations or temporary workarounds. Patch status is confirmed by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-798h-hpph-m24j
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55426"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a4c340227e9c797195f5e57
Added to database: 07/06/2026, 23:02:26 UTC
Last enriched: 07/06/2026, 23:11:25 UTC
Last updated: 07/06/2026, 23:11:25 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.