CVE-2026-52817: Linuxfabrik Monitoring Plugins: Sudoers may be able to obtain privilege escalation via /usr/bin/apt-get arguments
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: Since the nagious user can use sudo to run apt-get as root, the resulting shell is also running as…
Published Jul 2, 2026
Affected packages
linuxfabrik-lib
- Ecosystem
- PyPI
- Affected
- <= 5.0.0
- Fixed in
- 5.1.0
- Check
pip show linuxfabrik-lib
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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:
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 2Credited to OoYo0uto.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-73974
linuxfabrik-lib: Arbitrary root file read via live --test argument (lib.lftest) across sudoers-whitelisted plugins (LPE)
medium5.5Aug 18, 2026CVE-2026-67435
linuxfabrik-lib: fetch() forwards credential headers across a cross-origin redirect
medium6.0Jul 30, 2026CVE-2026-53759
Linuxfabrik Monitoring Plugins allow insecure creation of SQLite databases
low2.0Jul 6, 2026CVE-2026-55426
Linuxfabrik Monitoring Plugins have local privilege escalation using embedded command
high7.8Jul 6, 2026
