Pi-hole FTL
Pi-hole FTL affected by Remote Code Execution (RCE) via dns.upstreams Newline Injection
FTLDNS (pihole-FTL) provides an interactive API and also generates statistics for Pi-hole's Web interface. From 6.0 to before 6.6, the Pi-hole FTL engine contains a Remote Code Execution (RCE) vulnerability in the upstream DNS servers configuration parameter (dns.upstreams). This vulnerability allows an authenticated attacker to inject arbitrary dnsmasq configuration directives through newline characters, ultimately achieving command execution on the underlying system. This vulnerability is fixed in 6.6.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6.0, < 6.6
Fixed in 6.6
Mitigation
Upgrade FTL to 6.6 or later.
References
- Vendor advisory github.com/pi-hole/FTL/security/advisories/GHS…
Timeline
Days relative to CVE publicationFirst public PoC 6.6 days after publication; not in CISA KEV. First PoC: keraattin/CVE-2026-35517 (created 14 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| keraattin/CVE-2026-35517 | 14 Apr 2026 +6.6 d | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /admin/api.php
- Query
versions=versionsversion- Key headers
Accept: application/json- Ports
- 80, 443, 4711, 8080, 8443
- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: keraattin/CVE-2026-35517
- Evidence
- keraattin/CVE-2026-35517/README.md:380 keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS_detector.py:128 keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS_detector.py:129 keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS.nse:78 keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS.nse:79
GET /api/info/version
- Key headers
Accept: application/json- Ports
- 80, 443, 4711, 8080, 8443
- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: keraattin/CVE-2026-35517
- Evidence
- keraattin/CVE-2026-35517/README.md:377 keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS_detector.py:127 keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS.nse:75
GET /admin/
- Ports
- 80, 443, 4711, 8080, 8443
- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: keraattin/CVE-2026-35517
- Evidence
- keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS_detector.py:97 keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS.nse:84
GET /api/version
- Key headers
Accept: application/json- Ports
- 80, 443, 4711, 8080, 8443
- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: keraattin/CVE-2026-35517
- Evidence
- keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS_detector.py:130 keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS.nse:76
GET /admin/index.php
- Ports
- 80, 443, 4711, 8080, 8443
- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: keraattin/CVE-2026-35517
- Evidence
- keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS_detector.py:97 keraattin/CVE-2026-35517/CVE-2026-35517_PiHole_FTLDNS.nse:85
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/admin/api\.php\?(?:.*&)?versions=.*versions.*version
(?i)^/api/info/version(?:[?#].*)?$
(?i)^/admin/(?:[?#].*)?$
(?i)^/api/version(?:[?#].*)?$
(?i)^/admin/index\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [80,443,4711,8080,8443] (msg:"GG PoC-Monitor CVE-2026-35517 pi-hole FTL exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/admin/api.php"; http.uri; content:"versions="; http.uri; content:"versions"; http.uri; content:"version"; http.header; content:"Accept: application/json"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-35517; classtype:web-application-attack; sid:9495059; rev:1;)
alert http any any -> $HOME_NET [80,443,4711,8080,8443] (msg:"GG PoC-Monitor CVE-2026-35517 pi-hole FTL exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/info/version"; http.header; content:"Accept: application/json"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-35517; classtype:web-application-attack; sid:9594785; rev:1;)
alert http any any -> $HOME_NET [80,443,4711,8080,8443] (msg:"GG PoC-Monitor CVE-2026-35517 pi-hole FTL exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/admin/"; reference:url,poc.griffinguard.io/cve/CVE-2026-35517; classtype:web-application-attack; sid:9547967; rev:1;)
alert http any any -> $HOME_NET [80,443,4711,8080,8443] (msg:"GG PoC-Monitor CVE-2026-35517 pi-hole FTL exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/version"; http.header; content:"Accept: application/json"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-35517; classtype:web-application-attack; sid:9362750; rev:1;)
alert http any any -> $HOME_NET [80,443,4711,8080,8443] (msg:"GG PoC-Monitor CVE-2026-35517 pi-hole FTL exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/admin/index.php"; reference:url,poc.griffinguard.io/cve/CVE-2026-35517; classtype:web-application-attack; sid:9341603; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: pi-hole FTL exploit attempt (CVE-2026-35517)
id: gg-pocmon-cve-2026-35517-9495059
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35517. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35517
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/admin/api.php'
cs-uri-query|contains|all:
- 'versions='
- 'versions'
- 'version'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35517
title: pi-hole FTL exploit attempt (CVE-2026-35517)
id: gg-pocmon-cve-2026-35517-9594785
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35517. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35517
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/info/version'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35517
title: pi-hole FTL exploit attempt (CVE-2026-35517)
id: gg-pocmon-cve-2026-35517-9547967
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35517. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35517
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/admin/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35517
title: pi-hole FTL exploit attempt (CVE-2026-35517)
id: gg-pocmon-cve-2026-35517-9362750
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35517. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35517
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/version'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35517
title: pi-hole FTL exploit attempt (CVE-2026-35517)
id: gg-pocmon-cve-2026-35517-9341603
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35517. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35517
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/admin/index.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35517