RCE in Pi-Hole

CVE-2025-34087

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.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.050 (91.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2025-34087?
CVE-2025-34087 is a high-severity vulnerability in Pi-Hole, classified under OS Command Injection. CVSS score: 8.8/10. Published 2025-07-03.
How severe is CVE-2025-34087?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2025-34087 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.