High

Linuxfabrik Monitoring Plugins: Sudoers may be able to obtain privilege escalation via /usr/bin/apt-get arguments

  • Disclosed: 02.07.2026
  • Updated: 11.10.2026 14:17

Summary

In the Debian.sudoers file, apt-get is allowed for the nagios user. The full command including the arguments are not enforced and can therefore be choosen arbitrarily. This allows to easily get a root shell as the nagios user:

PoC

By choosing a particular argument, you can get (as a nagios user) a root shell:

bash
sudo apt-get update -o APT::Update::Pre-Invoke::="/bin/sh"

Since the nagious user can use sudo to run apt-get as root, the resulting shell is also running as root.

Impact

The vulnerability is a local privilege escalation, impacting users who use the provided sudoers file. It requires that an attacker already compromised the nagios account (which is quite a high barrier to be honest).

Fix

Since only one place where apt-get is currently used (in deb-updates) was found, it should be enough to allow only the specific arguments used there.

Here an example how the line in the sudoers file could look like:

                    /usr/lib64/nagios/plugins/strongswan-connections,\
                    /usr/lib64/nagios/plugins/systemd-unit,\
                    /usr/bin/apt-get update --quiet 2

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) linuxfabrik-lib < 5.1.0 5.1.0

References

CVSS score -
CVSS vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Weakness (CWE)
CWE-88
Platform
Python (PyPI)
Package
linuxfabrik-lib
Disclosed
02.07.2026
Updated
11.10.2026 14:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-2595 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-8w6w-23mq-h8rg - CC BY 4.0

Vulnerability history: linuxfabrik-lib

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
07.2026 08.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 2
  • Low 1

Disclosures per year

  1. 2026: 5
  1. Linuxfabrik Monitoring Plugins: Sudoers may be able to obtain privilege escalation via /usr/bin/apt-get arguments this entry
    High CVE-2026-52817 < 5.1.0 5.1.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.