Skip to main content

Linuxfabrik Monitoring Plugins EUVDEUVD-2026-61490

| CVE-2026-53759 LOW
Insecure Temporary File (CWE-377)
2026-07-06 https://github.com/Linuxfabrik/monitoring-plugins GHSA-r35r-fpx2-jgr4 PYSEC-2026-2596
2.0
CVSS 4.0 · Vendor: https://github.com/Linuxfabrik/monitoring-plugins
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Compromise nagios service account
  2. Delivery
    Pre-create symlink at predictable /tmp SQLite DB path
  3. Exploit
    Trigger sudo execution of monitoring plugin
  4. Execution
    Plugin opens symlink path without lstat validation
  5. Persist
    Root process follows symlink
  6. Impact
    Write SQLite database to attacker-chosen target path

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Secure temp file creation
Exploitation Conditions

Three concrete conditions must all be met simultaneously. First, the attacker must already control the nagios operating system account - either through prior compromise or because they are the nagios user. Second, the target system must have deployed the Linuxfabrik project's recommended sudoers configuration that permits the nagios user to execute one or more monitoring plugin scripts as root without a password. Third, systemd's PrivateTemp isolation must NOT be active for the service or shell session invoking the scripts, since PrivateTemp gives each process its own /tmp namespace, breaking the shared-path assumption. What limits exploitation: the nagios account compromise prerequisite is a genuine high barrier; the attack does not work against monitoring plugins that do not use SQLite persistence; and administrators who did not adopt the provided sudoers file are not exposed to the privilege-escalation vector (though same-user file clobbering remains possible).

Impact

No vendor-assigned CVSS vector is available; risk signals are independently assessed. The access barrier is non-trivial: exploitation requires prior compromise of the nagios operating system account, which the reporter explicitly acknowledges is 'quite a high barrier.' However, for systems where the nagios account is exposed (e.g., via a separate Nagios core vulnerability, weak credentials, or shared service account reuse), this vulnerability provides a direct local privilege escalation to root write capability. A proof-of-concept is publicly available in the GitHub advisory, lowering the technical skill requirement once the prerequisite access is obtained. EPSS data is not available. KEV status is not confirmed. The most severe impact scenario - injecting a crafted SQLite WAL or rollback journal to tamper with an existing application database - requires an attacker with knowledge of the target database schema, making it a realistic but non-trivial secondary step. The base denial-of-service impact (corrupting an arbitrary file) is immediately achievable with the PoC as written. The risk is real for affected deployments but is bounded by the hard prerequisite of nagios account access.

Exploit ScenarioDerived

An attacker who has compromised the nagios service account - for example via a separate Nagios agent vulnerability or credential theft - runs ln -s /root/nagios-was-here /tmp/linuxfabrik-monitoring-plugins-docker-stats.db on the target server. The attacker then triggers a sudo invocation of the docker-stats monitoring plugin (either by waiting for a scheduled execution or directly via sudo if permitted). The plugin's Python code opens the symlink target path for SQLite database creation, and the kernel follows the symlink, causing the root-owned process to write a valid SQLite database file to /root/nagios-was-here. A proof-of-concept demonstrating exactly this flow is included in the GitHub Security Advisory.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 06, 2026

Arbitrary file write as root via symlink attack in Linuxfabrik Monitoring Plugins affects any deployment using the provided sudoers configuration. The monitoring plugins create SQLite databases at predictable, static paths under /tmp; an attacker who has already gained access to the nagios service account can pre-place symlinks at those paths, and when a monitoring script is subsequently invoked via sudo, it follows the symlink and writes a SQLite database to any attacker-chosen path on the filesystem. A proof-of-concept is included in the GitHub Security Advisory GHSA-r35r-fpx2-jgr4, and no CISA KEV listing or CVSS score has been assigned at time of analysis.

RemediationAI

The upstream-proposed fix is to replace the static /tmp/<plugin-name>.db path with a per-user subdirectory such as /tmp/linuxfabrik-monitoring-plugins-{os.geteuid()}, and to validate that directory using os.lstat() (not os.stat()) before use - confirming it is a real directory (not a symlink), is owned by the current effective UID, and has no world- or group-writable permissions (mode & 0o077 == 0). No patched release version has been confirmed at time of analysis; monitor https://github.com/Linuxfabrik/monitoring-plugins for a tagged release containing this fix. As an immediate compensating control, enable systemd's PrivateTemp=true for any service unit invoking these plugins - this gives each service a private /tmp namespace, eliminating the symlink attack surface entirely with no functional side effects for the plugins. Alternatively, administrators can remove or restrict the sudoers entries for affected check commands until a patched version is available; this eliminates the privilege escalation path at the cost of monitoring capability. Do not rely on /tmp sticky-bit restrictions alone, as the nagios user legitimately owns the symlink it creates.

Affected VersionsENISA

monitoring-plugins < 4.2.0

Affected Packages

pypi linuxfabrik-lib fix: 4.2.0
euvd monitoring_plugins fix: 4.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability class is CWE-377 (Insecure Temporary File), a well-understood TOCTOU weakness in which a program creates files in a shared, world-writable directory (/tmp) using predictable names without verifying that the path has not been redirected. The affected component is the linuxfabrik-lib Python package (CPE: pkg:pip/linuxfabrik-lib), which is the shared library underpinning the Linuxfabrik monitoring-plugins suite. Multiple check commands - including docker-stats and others that persist state via SQLite - use hardcoded paths of the form /tmp/linuxfabrik-monitoring-plugins-<check-name>.db. The root cause is the use of os.stat() (which follows symlinks) rather than os.lstat() when opening or creating the database file, combined with the absence of per-user subdirectory isolation. The sudo integration, provided by the project's own recommended sudoers file, elevates the monitoring scripts to run as root, transforming what would otherwise be a same-user file clobber into a cross-privilege arbitrary write primitive.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/Linuxfabrik/monitoring-plugins) PRIMARY 2.0 LOW
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
vuln.today AI 8.4 HIGH

Local nagios account required (AV:L/PR:L); symlink placement is straightforward with no race condition (AC:L); root write crosses privilege boundary (S:C); no confidentiality impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H

Primary rating from Vendor (https://github.com/Linuxfabrik/monitoring-plugins).

CVSS VectorVendor: https://github.com/Linuxfabrik/monitoring-plugins

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Aug 18, 2026 - 21:22 NVD
2.0 (LOW)

DescriptionCVE.org

Summary

The SQLite databases are created at predictable (static) paths in /tmp. Any user can therefore create a symlink at these paths in /tmp pointing to arbitrary files. The monitoring scripts then follows these symlinks and then creates their database at the symlink target. This becomes really dangerous for the scripts which can be executed as root with sudo. With this, an attacker can write to abitrary paths.

PoC

The docker-stats check command here as an example. Because writing to /tmp is the default behaviour, the other check commands which use a SQLite database are also very likely affected.

# Create the symlink as nagios user
nagios@test-server:/tmp$ ln -s /root/nagios-was-here /tmp/linuxfabrik-monitoring-plugins-docker-stats.db
# Trigger the execution nagios user
nagios@test-server:/tmp$ sudo /usr/lib64/nagios/plugins/docker-stats

Check whether or not file was created.

root@test-server:/
# file /root/nagios-was-here
/root/nagios-was-here: SQLite 3.x database, last written using SQLite version 3046001, file counter 2, database pages 3, cookie 0x2, schema 4, UTF-8, version-valid-for 2

Impact

In it's basic form, this vulnerbility can lead to a denial of service, impacting users who use the provided sudoers file and who didn't take any special precautions like systemd's PrivateTemp. It requires that an attacker already compromised the nagios account (which is quite a high barrier to be honest).

If any application on the server relies on a SQLite database, there are scenarios where this vulnerability allows for content in existing SQLite databases to be modified. An attacker could let the symlink point to an existing SQLite database and create in /tmp a specially-crafted SQLite Rollback Journal (.db-journal) or Write-Ahead-Log (.db-wal), which is then applied to the database.

Fix

A proposed fix would be to create a separate directory inside /tmp per user (e.g., /tmp/linuxfabrik-monitoring-plugins-{os.geteuid()}). After creating this directory (or using an already existing one), check the following:

# Use os.lstat() instead of os.stat() so we don't accidentally follow symlinks
dir_stat = os.lstat(TMP_DIR_PATH)
# Ensure the directory is a real dir and not a Symlink
if not stat.S_ISDIR(dir_stat.st_mode):
# abort the execution
  sys.exit(1)
# Verify the owner
if dir_stat.st_uid != os.getuid():
# abort the execution
  sys.exit(1)
# Verify the permissions
if (dir_stat.st_mode & 0o077) != 0:
# abort the execution
  sys.exit(1)

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche open-source monitoring plugin, limited production footprint
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy