CVE-2024-28247

HIGH

Pi-hole < 5.18 - Authenticated Arbitrary File Read via Adlist Local File Update

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2024-28247. PoCs published by T0X1Cx.

AI-analyzed exploit summary This exploit leverages an arbitrary file read vulnerability in Pi-hole via the 'file://' handler, allowing an authenticated attacker to read sensitive files like '/etc/shadow'. It chains authentication, CSRF token extraction, and file path manipulation to exfiltrate data.

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.

Exploits (1)

nomisec WORKING POC 3 stars
by T0X1Cx · poc
https://github.com/T0X1Cx/CVE-2024-28247-Pi-hole-Arbitrary-File-Read

This exploit leverages an arbitrary file read vulnerability in Pi-hole via the 'file://' handler, allowing an authenticated attacker to read sensitive files like '/etc/shadow'. It chains authentication, CSRF token extraction, and file path manipulation to exfiltrate data.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Pi-hole up to version 5.17.3
Auth required
Prerequisites: Valid Pi-hole admin credentials · Network access to the Pi-hole admin interface
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 7.6
EPSS 0.0141
EPSS Percentile 69.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-200 CWE-269
Status published
Products (1)
pi-hole/pi-hole < 5.18
Published Mar 27, 2024
Tracked Since Feb 18, 2026