CVE-2026-119336

Pi-hole: arbitrary root file clobber / chmod / disclosure via updatecheck.sh cron following /etc/pihole/versions symlink

Published Oct 30, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. From 6.4.2 until 6.5, the root-run advanced/Scripts/updatecheck.sh cron job applies truncate -s 0 and chmod 644 to /etc/pihole/versions while following symbolic links in a directory owned by the pihole user. An attacker executing as pihole can replace that path with a symlink so the scheduled root operations truncate or create an arbitrary root-owned file, or race the operations so chmod makes a sensitive target world-readable without truncating it. This issue is fixed in version 6.5.

Analysis

AI-generated

Technical impact

The vulnerability stems from an improperly configured root‑run cron job that truncates and sets permissions on /etc/pihole/versions. When the cron script follows a symbolic link, an attacker who can write in the Pi‑hole directory can replace the target with a link to any file, causing an arbitrary file to be truncated or overwritten as root or making a sensitive file world‑readable. This allows a local attacker to create or corrupt root‑owned files and potentially expose confidential data.

Affected Systems

Pi‑Hole software versions from 6.4.2 up to 6.5, running on Linux systems where the updatecheck.sh cron job executes as root but operates on files owned by the pihole user. The vulnerability was addressed in the 6.5 release.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity vulnerability. The EPSS score is not available, so the likelihood of exploitation in the wild is uncertain, and the vulnerability is not listed in the CISA KEV catalog. The attack requires local write access to the /etc/pihole/ directory, making it a local privilege problem, but because the cron job runs as root it can elevate the damage once the symlink is in place.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Pi‑Hole to version 6.5 or later.
  • Disable the updatecheck.sh cron job to stop root‑level truncate and chmod operations.
  • Restrict write permissions on the /etc/pihole/ directory to prevent creation of malicious symbolic links.

Generated by OpenCVE AI on October 30, 2026 at 21:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Pi-hole
Pi-hole pi-hole
Vendors & Products Pi-hole
Pi-hole pi-hole
Type Values Removed Values Added
Description Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. From 6.4.2 until 6.5, the root-run advanced/Scripts/updatecheck.sh cron job applies truncate -s 0 and chmod 644 to /etc/pihole/versions while following symbolic links in a directory owned by the pihole user. An attacker executing as pihole can replace that path with a symlink so the scheduled root operations truncate or create an arbitrary root-owned file, or race the operations so chmod makes a sensitive target world-readable without truncating it. This issue is fixed in version 6.5.
Title Pi-hole: arbitrary root file clobber / chmod / disclosure via updatecheck.sh cron following /etc/pihole/versions symlink
Weaknesses CWE-59
CWE-61
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-59

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

  • CWE-61

    UNIX Symbolic Link (Symlink) Following

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 10:14 PM
Reserved
Oct 29, 2026, 8:44 PM
Status
Awaiting Analysis
Published
Oct 30, 2026, 8:17 PM
Modified
Nov 2, 2026, 7:14 PM