Root command execution via writable sourced file
Published Apr 6, 2026 · Updated Apr 6, 2026
Local privilege escalation in Pi-hole 6.4 allows local users controlling a pihole process to execute arbitrary commands as root. Root-run pihole, version.sh, and piholeDebug.sh scripts source /etc/pihole/versions even though the pihole account can write that file. Exploitation requires an existing foothold as UID pihole; the account has nologin, but injected shell content runs with root privileges when a privileged script or cron path reads the file.
Summary
What happened
Local privilege escalation in Pi-hole 6.4 allows local users controlling a pihole process to execute arbitrary commands as root. Root-run pihole, version.sh, and piholeDebug.sh scripts source /etc/pihole/versions even though the pihole account can write that file. Exploitation requires an existing foothold as UID pihole; the account has nologin, but injected shell content runs with root privileges when a privileged script or cron path reads the file.
The record
- CVE
- CVE-2026-33727
- Published
- Apr 6, 2026
- Updated
- Apr 6, 2026
- Vendor
- Pi-hole
- Product
- Pi-hole
- Classifications
- CWE-269, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 6, 2026CVE publishedPublication date reported by the CVE source.
- Apr 6, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 6.4, < 6.4.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-c935-8g63-qp74 local privilege-escalation proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo