Skip to main content

Pi Hole CVE-2026-33727

| EUVDEUVD-2026-19291 MEDIUM
Improper Privilege Management (CWE-269)
2026-04-06 GitHub_M
6.4
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

CVSS 6.4 reflects moderate severity with high impact but significant practical constraints. The CVSS vector (AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H) indicates local attack only, high attack complexity, and high privilege requirement (pihole account), limiting opportunistic exploitation. However, this is NOT a low-risk issue despite the moderate CVSS score: the realistic threat model is a post-compromise scenario where an attacker has already gained code execution as the pihole account through a separate vulnerability (e.g., web UI RCE, FTL vulnerability, or supply-chain compromise). Given Pi-hole's deployment model as a network service handling DNS from potentially untrusted networks, such initial compromise vectors are plausible. The escalation to root is deterministic once the pihole account is compromised, making this a critical secondary exploit in a chained attack. KEV and POC status are not provided, indicating no confirmed active exploitation at time of analysis, but the clear code path and availability of vendor advisory should drive patching priority for Pi-hole 6.4 deployments.

Exploit ScenarioDerived

An attacker compromises a Pi-hole instance via an initial vulnerability (e.g., remote code execution in the web dashboard or DNS service). The attacker gains code execution as the pihole account. The attacker then modifies /etc/pihole/versions to inject arbitrary shell commands or scripts. When a Pi-hole system component (running as root) sources this file as part of normal operation or a scheduled task, the attacker's code executes with root privileges, allowing complete system compromise. No public exploit code is required beyond basic file manipulation; the vulnerability is a simple but critical design flaw in configuration handling.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 06, 2026

Pi-hole 6.4 allows local privilege escalation to root code execution via insecure sourcing of attacker-controlled content in /etc/pihole/versions by root-run scripts. A compromised low-privilege pihole account can inject malicious code that executes with root privileges, despite the pihole account using nologin shell. This vulnerability is fixed in version 6.4.1.

RemediationAI

Upgrade to Pi-hole version 6.4.1 or later, which fixes the insecure sourcing of version information. The vendor-released patch corrects the privilege escalation by implementing proper input validation and file ownership/permission controls for files sourced by root-run scripts. Administrators should apply the patch immediately to all Pi-hole 6.4 installations. Additional hardening steps include: verify that /etc/pihole/versions and related configuration files are owned by root with restricted write permissions (not writable by the pihole account), and review the Pi-hole security advisory at https://github.com/pi-hole/pi-hole/security/advisories/GHSA-c935-8g63-qp74 for detailed technical context and any interim mitigations if upgrading is delayed.

Affected VersionsENISA

pi-hole 6.4, < 6.4.1

Affected Packages

euvd pi_hole_6_4 fix: 6.4.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

Pi-hole is a DNS-based ad-blocking service running on Linux systems. The vulnerability stems from CWE-269 (Improper Access Control) where root-privileged Pi-hole scripts source configuration or version data from /etc/pihole/versions without proper validation. The pihole account, though configured with nologin to prevent direct interactive login, can still execute code if a Pi-hole component is compromised (e.g., via a separate vulnerability in the web dashboard or FTL daemon). When root-run scripts then source attacker-modified files from /etc/pihole/versions, the injected code executes with root privileges. This pattern is a classic privilege escalation chain: initial compromise of the pihole account (which has legitimate process execution capabilities) followed by code injection into files trusted by root-level processes.

Know when Pi Hole 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

GitHub Advisory PRIMARY 6.4 MEDIUM
AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Apr 16, 2026 - 05:29 EUVD
6.4.1
CVE Published
Apr 06, 2026 - 15:02 nvd
MEDIUM 6.4

DescriptionGitHub Advisory

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

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

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2025-34087 HIGH POC
8.8 Jul 03

Pi-hole versions up to 3.3 contain an authenticated command injection via the domain allowlist functionality. When addin

CVE-2020-11108 HIGH POC
8.8 May 11

The Gravity updater in Pi-hole through 4.4 allows an authenticated adversary to upload arbitrary files. Rated high sever

CVE-2021-29449 MEDIUM POC
6.3 Apr 14

Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Rated medium severity (CVSS 6.

CVE-2020-8816 HIGH POC
7.2 May 29

Pi-hole Web v4.3.2 (aka AdminLTE) allows Remote Code Execution by privileged dashboard users via a crafted DHCP static l

CVE-2024-34361 HIGH POC
8.8 Jul 05

Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. Rated

CVE-2023-23614 HIGH POC
8.8 Jan 26

Pi-hole®'s Web interface (based off of AdminLTE) provides a central location to manage your Pi-hole. Rated high severity

CVE-2021-32706 HIGH POC
8.8 Aug 04

Pi-hole's Web interface provides a central location to manage a Pi-hole instance and review performance statistics. Rate

CVE-2021-29448 HIGH POC
8.8 Apr 15

Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Rated high severity (CVSS 8.8)

CVE-2025-59151 HIGH POC
8.2 Oct 27

HTTP response splitting in Pi-hole Admin Interface before 6.3 lets unauthenticated remote attackers inject CRLF sequence

CVE-2020-14162 HIGH POC
7.8 Jul 30

An issue was discovered in Pi-Hole through 5.0. Rated high severity (CVSS 7.8), this vulnerability is low attack complex

CVE-2020-12620 HIGH POC
7.8 Jul 30

Pi-hole 4.4 allows a user able to write to /etc/pihole/dns-servers.conf to escalate privileges through command injection

CVE-2024-44069 HIGH POC
7.5 Aug 19

Pi-hole before 6 allows unauthenticated admin/api.php?setTempUnit= calls to change the temperature units of the web dash

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