CVE-2026-55426: Linuxfabrik lib Linuxfabrik Monitoring Plugins Have Local Vulnerability
HIGHCVE-2026-55426 is a HIGH (CVSS 7.8) linuxfabrik monitoring plugins have local vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Linuxfabrik lib libraries in the PyPI ecosystem. The issue involves linuxfabrik monitoring plugins have local privilege escalation using embedded command. Remediation is available by upgrading affected packages to version 5.0.0.
CVE-2026-55426 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-55426
To remediate this vulnerability, upgrade all affected Linuxfabrik lib dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install linuxfabrik-lib>=5.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show linuxfabrik-lib
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-55426, inspect your installed packages using pip:
pip show linuxfabrik-lib
Analyze the terminal output to locate any version of Linuxfabrik lib in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.0), your application is affected.
Note: The pip show linuxfabrik-lib command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Linuxfabrik lib, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-55426 Affected Linuxfabrik lib Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
linuxfabrik-lib
|
PyPI |
< 5.0.0
|
5.0.0
|
References
Frequently Asked Questions
What is CVE-2026-55426?
Which Linuxfabrik lib versions are affected?
What version fixes CVE-2026-55426?
Is linuxfabrik-lib affected?
What is the CVSS score of CVE-2026-55426?
What CWE is associated with CVE-2026-55426?
How can I check PyPI dependencies for CVE-2026-55426?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-798h-hpph-m24j",
"modified" : "2026-07-06T21:13:38Z",
"published" : "2026-07-06T21:13:38Z",
"aliases" : [ "CVE-2026-55426" ],
"summary" : "Linuxfabrik Monitoring Plugins have local privilege escalation using embedded command",
"details" : "### Summary\nWhen a check plugin places user provided input inside a command which is passed to `shell_exec`, an attacker can abuse this to run arbitrary commands. This is mainly dangerous for plugins which are listed in the sudoers file, because this allows an attacker controlling the nagios user to get root privileges.\n\n### Details\nAn example for this is the `restic-check` plugin, where the `--repo` argument is placed inside the command argument of `shell_exec`. As an example, an attacker could use the `--repo` argument `|touch /root/nagios-was-here|`. The full restic command is assembled to the string `restic --json --repo=|touch /root/nagios-was-here| --password-file= check` before it is passed to `shell_exec`. `shell_exec` then splits the command up in three parts at the | boundaries and executes the parts separately, which also executes the embedded command `touch /root/nagios-was-here`.\n\n### PoC\nThis PoC shows how the nagios user can use this to create a file inside `/root`.\n```\nnagios@test-vm:/$ sudo /usr/lib64/nagios/plugins/restic-check --repo '|touch /root/nagios-was-here|'\n```\n\n### Impact\nThe vulnerability is a local privilege escalation.\n\n### Fix\n\n#### Switch from | to an array\nRemove the | split functionality. Instead, modify shell_exec to accept either a string or an array of strings. If an array is provided, the commands are chained together like they currently are when using |. If a string is provided, no split should be performed. You could also introduce a separate function like `shell_exec_with_user_input()` which implements this such that the current shell_exec function can stay like it is.\n\nThis leaves the problem that an attacker can still specify arbitrary arguments inside a command. An example for this would be to use the `--repo` argument `sftp://example.com --cache-dir /tmp`, which would lead to the execution of: `restic --json --repo=sftp://example.com --cache-dir /tmp --password-file=None check`. Please note that this example should mainly highlight the problem in general. To prevent the problem, there is either escaping or again array-syntax. Escaping would use `shlex.quote` to place the user provided argument inside quotes and which also escapes everything which needs to be escaped. Using array syntax would mean providing the full command as an array like `['restic', '--json', '--repo', 'sftp://example.com']`. The array can then be given as-is to `Popen`. With this method, the proposed `shell_exec_with_user_input` would accept an array of array of strings.\n\n### Patches\n\nThe fix follows the array-syntax approach proposed above:\n\n* `linuxfabrik-lib` 5.0.0: `lib.shell.shell_exec()` requires the command as a list of\n arguments (argv) and always runs with `shell=False`. The `|` split functionality, command\n strings and the `shell=` parameter have been removed, so user-provided input can no longer\n break out of a command. `lib.shell.safe_cli_value()` additionally guards positional\n arguments (such as an ssh destination or a ping target) against option injection, and\n `lib.ssh` builds argument lists as well.\n* Linuxfabrik Monitoring Plugins: all plugins assemble their external commands as argv lists\n (commit 23bb570f4). Contained in every release after v5.2.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "linuxfabrik-lib"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Linuxfabrik/monitoring-plugins/security/advisories/GHSA-798h-hpph-m24j"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Linuxfabrik/monitoring-plugins"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-06T21:13:38Z",
"nvd_published_at" : null
}
}