CVE-2026-33727

Pi-hole has a Local Privilege Escalation (post-compromise, pihole -> root).

Published Apr 6, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Version 6.4 has a local privilege-escalation vulnerability allows code execution as root from the low-privilege pihole account. Important context: the pihole account uses nologin, so this is not a direct interactive-login issue. However, nologin does not prevent code from running as UID pihole if a Pi-hole component is compromised. In that realistic post-compromise scenario, attacker-controlled content in /etc/pihole/versions is sourced by root-run Pi-hole scripts, leading to root code execution. This vulnerability is fixed in 6.4.1.

Analysis

AI-generated

Technical impact

A flaw in Pi‑hole version 6.4 permits a compromise of the low‑privilege pihole account to lead to code execution as root. The vulnerability arises because root‑run Pi‑hole scripts read attacker‑controlled entries from /etc/pihole/versions, which allows arbitrary code to be run with root privileges. This grants complete control over the host, including data theft, persistence, or further lateral movement.

Affected Systems

Pi‑hole deployments running version 6.4 are affected. The issue is specific to the official Pi‑hole package, and any system using that package and not yet updated to 6.4.1 will remain vulnerable.

Risk and Exploitability

The CVSS score of 6.4 indicates a moderate severity. The EPSS score is below 1%, suggesting low current exploitation likelihood, and the vulnerability is not in CISA’s Known Exploited Vulnerabilities catalog. However, the attack requires that an attacker already has the pihole user’s capabilities to be able to modify or inject files into /etc/pihole/versions, after which the vulnerability is trivially exploitable with root‑level impact. The attack vector is post‑compromise local, with no need for external network exposure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Pi‑hole 6.4.1 or later
  • Verify that the Pi‑hole service runs under the pihole user and limit write permission to /etc/pihole/versions
  • Audit /etc/pihole/versions for unauthorized entries
  • Restart Pi‑hole after updates to ensure changes take effect

Generated by OpenCVE AI on April 9, 2026 at 19:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:pi-hole:pi-hole:6.4:*:*:*:*:*:*:*
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 Linux network-level advertisement and Internet tracker blocking application. Version 6.4 has a local privilege-escalation vulnerability allows code execution as root from the low-privilege pihole account. Important context: the pihole account uses nologin, so this is not a direct interactive-login issue. However, nologin does not prevent code from running as UID pihole if a Pi-hole component is compromised. In that realistic post-compromise scenario, attacker-controlled content in /etc/pihole/versions is sourced by root-run Pi-hole scripts, leading to root code execution. This vulnerability is fixed in 6.4.1.
Title Pi-hole has a Local Privilege Escalation (post-compromise, pihole -> root).
Weaknesses CWE-269
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-269

    Improper Privilege Management

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 7, 2026, 1:06 PM
Reserved
Mar 23, 2026, 5:34 PM
Status
Analyzed
Published
Apr 6, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:37 AM