{"schemaVersion":3,"id":"CVE-2025-34087","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.\n\n\n\n\nThis behavior was present in the legacy AdminLTE interface and has since been patched in later versions.","dates":{"published":"2025-07-03T19:46:49.017Z","modified":"2026-05-15T11:14:37.802Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9,"severity":"critical","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.06875,"percentile":0.94034,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":-0.20299999999999901,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.07078},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.06875,"percentile":0.94034}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.07078,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06998,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.06875,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.06875,"percentile":0.94034}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_FA382EB38641C3AA","name":"Exploit Reference (raw.githubusercontent.com)","source":"reference","url":"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/http/pihole_whitelist_exec.rb","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_8ACED8F6682B0C1B","name":"Exploit Reference (pulsesecurity.co.nz)","source":"reference","url":"https://pulsesecurity.co.nz/advisories/pihole-v3.3-vulns","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_UNIX_HTTP_PIHOLE_WHITELIST_EXEC","name":"Pi-Hole Whitelist OS Command Execution","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/unix/http/pihole_whitelist_exec.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/unix/http/pihole_whitelist_exec","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["artifacts-on-disk"],"reliability":["repeatable-session"]}}],"exploitCount":3,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"pi-hole llc","product":"web","name":"Web","label":"web","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 3.3","eol":null,"hubHref":"/vendor/pi-hole_llc/web"},{"vendor":"pi-hole","product":"pi-hole","name":"pi-hole","label":"pi-hole","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 3.3","eol":null,"hubHref":"/vendor/pi-hole/pi-hole"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/http/pihole_whitelist_exec.rb","label":"raw.githubusercontent.com/rapid7/…","hostname":"raw.githubusercontent.com","tags":["Exploit"]},{"url":"https://pi-hole.net/","label":"pi-hole.net","hostname":"pi-hole.net","tags":["Product"]},{"url":"https://github.com/pi-hole/web/releases/tag/v4.0","label":"github.com/pi-hole/web/releases/tag/v4.0","hostname":"github.com","tags":["Vendor Advisory","Patch","Release Notes"]},{"url":"https://pulsesecurity.co.nz/advisories/pihole-v3.3-vulns","label":"pulsesecurity.co.nz/advisories/pihole-v3.3-vulns","hostname":"pulsesecurity.co.nz","tags":["Third Party Advisory","Exploit"]},{"url":"https://vulncheck.com/advisories/pihole-adminlte-whitelist-rce","label":"vulncheck.com/advisories/pihole-adminlte-whitelist-rce","hostname":"vulncheck.com","tags":["Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-07-03T19:46:49.017Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-15T11:14:37.802Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T23:51:55.414Z","stale":false,"partial":false}}