Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-52817
Published:July 02, 2026
Updated:July 14, 2026
Summary In the "Debian.sudoers" (https://github.com/Linuxfabrik/monitoring-plugins/blob/main/assets/sudoers/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" (https://github.com/Linuxfabrik/monitoring-plugins/blob/998302a5fb43e89df1359f4cbb6558f81c96ae4f/check-plugins/deb-updates/deb-updates#L124)) 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 Packages
https://github.com/Linuxfabrik/monitoring-plugins.git (GITHUB):
Affected version(s) >=2020031201 <https://github.com/Linuxfabrik/monitoring-plugins/commit/694b5daeebad
Fix Suggestion:
Update to version https://github.com/Linuxfabrik/monitoring-plugins/commit/694b5daeebad
linuxfabrik-lib (PYTHON):
Affected version(s) >=2.0.0.0 <5.1.0
Fix Suggestion:
Update to version 5.1.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
7
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
HIGH
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
POC
CVSS v3
Base Score:
6.7
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')