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.
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:NAttack 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:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- pi-hole FTL >= 6.8 and < 6.9
- pi-hole < 6.6
- 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.
- Check whether you run pi-hole FTL and which version.
- 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 alertsExternal References
- Vendor Advisoryhttps://github.com/pi-hole/FTL/security/advisories/GHSA-pj9m-9623-2g75
- Vendor Advisoryhttps://github.com/pi-hole/pi-hole/security/advisories/GHSA-cq9w-mv93-mxh7
- Patchhttps://github.com/pi-hole/pi-hole/commit/63a1e2f31fea48f8fc3b21fdf98f44390fbba9a7
- Patchhttps://github.com/pi-hole/FTL/commit/8687f0af86e0bc1e0f825a39a929f07a83f8bdac
- Referencehttps://github.com/pi-hole/pi-hole/blob/v6.5/gravity.sh#L466-L475
- Referencehttps://github.com/pi-hole/FTL/blob/v6.8/src/config/validator.c#L319-L347
- Referencehttps://github.com/pi-hole/FTL/releases/tag/v6.9
- Referencehttps://github.com/pi-hole/pi-hole/releases/tag/v6.6
- Referencehttps://www.vulncheck.com/advisories/pi-hole-ftl-6.8-with-pi-hole-core-before-6.6-os-command-execution-via-sql-injection-in-files-gravity
Data last checked: Dec 6, 2026 16:07 UTC