Description
A flaw was found in MRTG. When the MRTG daemon is started as a root user and subsequently drops privileges, a local, low-privileged attacker can exploit a symbolic link (symlink) following vulnerability. By influencing or pre-placing a symlink in the process ID (PID) file path, the attacker can trick the root process into changing the ownership of an arbitrary existing file to the daemon user. This can lead to local privilege escalation, allowing unauthorized access to or modification of sensitive files.
Published: 2026-08-11
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in the MRTG daemon allows an attacker who has local low privileges to manipulate the symbolic link used in the PID file path. When the daemon is started as root and later drops privileges, the root process can follow the symlink and change the ownership of any existing file to the unprivileged daemon user. This enables the attacker to gain unauthorized write access to sensitive files and is classified as a local privilege escalation weakness (CWE‑59).

Affected Systems

The vulnerability affects Red Hat Enterprise Linux releases 10, 6, 7, 8, and 9 that include the MRTG daemon. Specific version information is not supplied, so any installation containing this daemon is potentially affected.

Risk and Exploitability

The CVSS score of 7.1 reflects a moderate to high severity, while the EPSS score is not reported, indicating limited publicly known exploitation data. The flaw is not listed in the CISA KEV catalog. Attack requires local access to the host and the ability to start MRTG as root with the `--daemon` flag; an attacker must also create or influence a symlink in the specified PID file location. Once those conditions are met, the daemon will change file ownership, achieving local privilege escalation.

Generated by OpenCVE AI on August 11, 2026 at 10:26 UTC.

Remediation

Vendor Workaround

To mitigate this issue, avoid starting the MRTG daemon as root with the `--daemon` option. Instead, configure MRTG to run directly as an unprivileged user. If root startup is strictly necessary, ensure that the PID file and its directory are owned by root and are not writable by unprivileged users, and prevent untrusted users from influencing the `--pid-file` path. Changes to service configuration may require a service restart to take effect.


OpenCVE Recommended Actions

  • Apply an official vendor patch or upgrade to a fixed MRTG release if one becomes available.
  • Reconfigure MRTG to run under an unprivileged user instead of starting it as root with the `--daemon` option.
  • If root startup is unavoidable, ensure the PID file and its containing directory are owned by root, set restrictive permissions that deny write access to unprivileged users, and prevent untrusted users from specifying or modifying the `--pid-file` path.
  • Restart the MRTG service to apply the configuration changes.

Generated by OpenCVE AI on August 11, 2026 at 10:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 11 Aug 2026 09:00:00 +0000

Type Values Removed Values Added
Description A flaw was found in MRTG. When the MRTG daemon is started as a root user and subsequently drops privileges, a local, low-privileged attacker can exploit a symbolic link (symlink) following vulnerability. By influencing or pre-placing a symlink in the process ID (PID) file path, the attacker can trick the root process into changing the ownership of an arbitrary existing file to the daemon user. This can lead to local privilege escalation, allowing unauthorized access to or modification of sensitive files.
Title Mrtg: mrtg daemon symlink-following chown allows local privilege escalation via pid file path manipulation
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-59
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Redhat Enterprise Linux
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-11T08:37:55.392Z

Reserved: 2026-08-10T12:35:16.746Z

Link: CVE-2026-72694

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-11T10:30:04Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')