What’s Vulnerable › Vulnerabilities
CVE-2024-28247: Pihole Authenticated Arbitrary File Read with root privileges
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-03-27 · updated 2026-06-17
- Weakness: CWE-200
Description
The Pi-hole is a DNS sinkhole that protects your devices from unwanted content without installing any client-side software. A vulnerability has been discovered in Pihole that allows an authenticated user on the platform to read internal server files arbitrarily, and because the application runs from behind, reading files is done as a privileged user.If the URL that is in the list of "Adslists" begins with "file*" it is understood that it is updating from a local file, on the other hand if it does not begin with "file*" depending on the state of the response it does one thing or another. The problem resides in the update through local files. When updating from a file which contains non-domain lines, 5 of the non-domain lines are printed on the screen, so if you provide it with any file on the server which contains non-domain lines it will print them on the screen. This vulnerability is fixed by 5.18.
Affected products
- pi-hole: before 5.18 — fixed in 5.18
How to fix
Upgrade to a fixed version: pi-hole 5.18. Check the vendor advisory for mitigations.
References
- https://github.com/pi-hole/pi-hole/commit/f3af03174e676c20e502a92ed7842159f2fdeb7e
- https://github.com/pi-hole/pi-hole/security/advisories/GHSA-95g6-7q26-mp9x
- https://github.com/pi-hole/pi-hole/commit/f3af03174e676c20e502a92ed7842159f2fdeb7e
- https://github.com/pi-hole/pi-hole/security/advisories/GHSA-95g6-7q26-mp9x
Get alerted when CVE-2024-28247 or the next vulnerability affects your stack