CVE-2024-34361 Pi-hole Blind Server-Side Request Forgery (SSRF) vulnerability can lead to Remote Code Execution (RCE)
An authenticated user can exploit SSRF in Pi-hole to make internal requests, potentially leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-34361?
CVE-2024-34361 is a high-severity server-side request forgery vulnerability in pi-hole, published on 5 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. A vulnerability in versions prior to 5.18.3 allows an authenticated user to make internal requests to the server via the `gravity_DownloadBlocklistFromUrl()` function. Depending on some circumstances, the vulnerability could lead to remote command execution. Version 5.18.3 contains a patch for this issue.
Weakness: CWE-918
Which versions are affected by CVE-2024-34361?
It affects 1 product.
Products include Pi-Hole Pi-Hole.
How do I fix CVE-2024-34361?
No fix has been published for CVE-2024-34361 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2024-34361 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34361 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in pi-hole
- CVE-2020-8816 Pi-Hole AdminLTE Remote Code Execution
- CVE-2025-34087 Pi-Hole AdminLTE Whitelist (now 'Web Allowlist') Remote Command Execution
- CVE-2026-50130 Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`
- CVE-2020-11108 File upload in n/a
- CVE-2019-13051 Pi-Hole 4.3 allows Command Injection.
Sources
Also known as GHSA-jg6g-rrj6-xfg6.