VAITP Dataset

← Back to the dataset

CVE-2026-55426

Command injection via pipe split in lib.shell.shell_exec() for root

  • CVSS 7.8
  • CWE-78
  • Input Validation and Sanitization
  • Remote

linuxfabrik-lib provides Python modules for database access, caching, shell execution, and API integrations, and Linuxfabrik Monitoring Plugins uses those modules to run external monitoring commands. From the earliest affected releases until linuxfabrik-lib 5.0.0 and Linuxfabrik Monitoring Plugins 6.0.0, check plugins embedded user-controlled values in command strings passed to lib.shell.shell_exec(), which split strings at pipe characters and executed the resulting commands. In check-plugins/restic-check/restic-check, the –repo parameter could inject a pipe-delimited command into a constructed restic invocation, and sudo-authorized execution allowed a compromised nagios or icinga account to run that command as root. The shared library also accepted command strings and a shell parameter, while numerous plugins constructed external commands from attacker-influenced arguments. The fixes require argv lists, always use shell=False, remove pipe splitting, and reject option-like positional values through lib.shell.safe_cli_value(). These issues are fixed in linuxfabrik-lib 5.0.0 and Linuxfabrik Monitoring Plugins 6.0.0.

CVSS base score
7.8
Published
2026-08-18
OWASP
A03 Injection
Orthogonal defect classification
Checking
Code defect classification
Incorrect Check
Category
Input Validation and Sanitization
Subcategory
Command Injection
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
linuxfabrik-lib, Linuxfabrik Monitoring Plugins
Fixed by upgrading
Yes

Solution

Upgrade to linuxfabrik‑lib 5.0.0 and Linuxfabrik Monitoring Plugins 6.0.0 (or later).

Vulnerable code sample

import os
from linuxfabrik_lib.shell import shell_exec

def run_restic(repo_path):
    # VULNERABLE: command string split on pipes allows injection
    cmd = f"restic -r {repo_path} snapshots"
    # shell_exec splits on '|' and runs each part with shell=True
    shell_exec(cmd, shell=True)

Patched code sample

import os
from linuxfabrik_lib.shell import shell_exec, safe_cli_value

def run_restic(repo_path):
    # FIX: use argument list and safe_cli_value to prevent injection
    safe_repo = safe_cli_value(repo_path)
    cmd = ["restic", "-r", safe_repo, "snapshots"]
    shell_exec(cmd, shell=False)

Cite this entry

@misc{vaitp:cve202655426,
  title        = {{Command injection via pipe split in lib.shell.shell_exec() for root}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-55426},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-55426/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.