CVE-2025-34087 Pi-Hole AdminLTE Whitelist (now 'Web Allowlist') Remote Command Execution

Critical 9.0 Published Updated

Authenticated attackers can execute arbitrary OS commands via unsanitized domain input in the Pi-hole allowlist feature.

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-2025-34087?

CVE-2025-34087 is a critical command injection vulnerability in Pi-hole LLC Web, published on 3 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An authenticated command injection vulnerability exists in Pi-hole versions up to 3.3. When adding a domain to the allowlist via the web interface, the domain parameter is not properly sanitized, allowing an attacker to append OS commands to the domain string. These commands are executed on the underlying operating system with the privileges of the Pi-hole service user.

This behavior was present in the legacy AdminLTE interface and has since been patched in later versions.

Weakness: CWE-78

Which versions are affected by CVE-2025-34087?

It affects 1 product.

Products include Pi-Hole Pi-Hole.

How do I fix CVE-2025-34087?

No fix has been published for CVE-2025-34087 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-34087 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-34087 exists.

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-j569-xm4x-j2qh.

Is CVE-2025-34087 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free