CVE-2026-145797: pi-hole FTL SQL Injection

CVE-2026-145797

NVD

Vulnerability Summary

Pi-hole FTL 6.8 with Pi-hole Core before 6.6 contains an SQL injection vulnerability that allows authenticated admins to execute OS commands as the pihole user via the files.gravity setting. Attackers can set a single-quoted payload through PATCH /api/config and trigger gravity, injecting SQL that calls the sqlite3 edit() function to run system commands.
Severity Level
HIGH(8.6)
Published Date
Dec 6, 2026
Last Modified
Dec 6, 2026
Exploitation Status
No confirmed exploitation yet
Root Weakness (CWE)
Improper neutralization of special elements used in an SQL command, allowing attackers to modify queries.
CVSS v4.0 Base Metrics — Score 8.6 (HIGH)
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredHigh
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 7.2)
CVSS v3.1 Base Metrics — Score 7.2 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • pi-hole FTL >= 6.8 and < 6.9
  • pi-hole < 6.6
Patched Versions
  • pi-hole FTL 6.9
  • pi-hole 6.6

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run pi-hole FTL and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Dec 6, 2026Published
  • Dec 6, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new pi-hole FTL CVEsYou are reading CVE-2026-145797. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 6, 2026 16:07 UTC