CVE-2026-119334

Pi-hole: file:// adlist read check and curl can resolve different files

Published Oct 30, 2026 CVSS 3.1 · 2.2 Low EPSS < 1% KEV · Not listed
Description
Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. Prior to 6.5, gravity.sh checks file:// adlist readability with sudo -u pihole test -r but then allows curl, sometimes running as root, to normalize URL dot segments and open a different file. A pihole-readable decoy can therefore pass the check while curl reads a root-only target, and /proc/self paths can similarly resolve against different processes. Exploitation requires an administrator who can add adlists and can place a symlink and decoy on the filesystem. This issue is fixed in version 6.5.

Analysis

AI-generated

Technical impact

Pi‑hole’s gravity.sh script checks whether a file:// adlist is readable by running a test as the pihole user, but later uses curl, often running as root, to normalize the URL and open a file. When the adlist points to a path that is readable by the pihole user yet resolves to a different file when accessed as root, a process can bypass the read check and access a root‑only file. The flaw, identified as CWE‑59, allows an attacker with the ability to add adlists and place symlinks or decoy files on the host to read data intended for privileged processes, potentially leaking sensitive information or enabling further exploitation. Affected systems include the open‑source Pi‑hole DNS sinkhole. The problem exists in all versions of Pi‑hole prior to 6.5; version 6.5 and later contain a fix that prevents the curl‑based resolution mismatch. Only installations that run gravity.sh as the pihole user but allow curl to run as root are susceptible. Risk and exploitability are low from a public safety perspective: the CVSS score is 2.2, EPSS data are not available, and it is not listed in the CISA KEV catalog. However, exploitation requires local administrative rights to add adlists and create symlinks. The most likely attack vector is a local attacker who has exploited another vulnerability or has compromised the Pi‑hole server. Given these constraints, the attack can be mitigated by deploying the vendor‑issued update and by restricting adlist configuration to trusted users.

Affected Systems

The vulnerability affects the Pi‑hole DNS sinkhole service from the Pi‑hole project. All releases older than version 6.5 are vulnerable; version 6.5 and later do not contain the flaw.

Risk and Exploitability

The CVSS score of 2.2 indicates a low severity. The EPSS score is currently not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers would need administrative or privileged access to the Pi‑hole server to add adlists, create symbolic links, and place decoy files. In that scenario, curl run as root could resolve the path to a privileged file after the read check has passed, allowing the attacker to read data that should be protected.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Pi‑hole to version 6.5 or later to apply the vendor fix
  • Ensure that only trusted administrators have permission to add adlists and to create symbolic links or decoy files on the host
  • Remove any suspicious adlists or symlinks that may already exist on the system
  • Monitor system logs for unauthorized adlist additions or file access attempts

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': 'partial'}, '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. Prior to 6.5, gravity.sh checks file:// adlist readability with sudo -u pihole test -r but then allows curl, sometimes running as root, to normalize URL dot segments and open a different file. A pihole-readable decoy can therefore pass the check while curl reads a root-only target, and /proc/self paths can similarly resolve against different processes. Exploitation requires an administrator who can add adlists and can place a symlink and decoy on the filesystem. This issue is fixed in version 6.5.
Title Pi-hole: file:// adlist read check and curl can resolve different files
Weaknesses CWE-59
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-59

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 2:59 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