CVE-2026-145797
7.2HighPublished Dec 6, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- High
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-89
What an attacker gets
Authenticated admins can execute arbitrary OS commands as the pihole user. An attacker needs valid administrative credentials to access the API and modify the gravity configuration.
Root cause
The application fails to sanitize input in the files.gravity setting, allowing SQL injection that leverages the sqlite3 edit() function to trigger system commands.
Affected versions
Pi-hole FTL 6.8 and Pi-hole Core before 6.6
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade Pi-hole FTL to 6.9 and Pi-hole Core to 6.6 or later. Until patched, restrict access to the administrative API to trusted IP addresses only.
$ pihole -upAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
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.
References
- https://github.com/pi-hole/FTL/blob/v6.8/src/config/validator.c#L319-L347
- https://github.com/pi-hole/FTL/commit/8687f0af86e0bc1e0f825a39a929f07a83f8bdac
- https://github.com/pi-hole/FTL/releases/tag/v6.9
- https://github.com/pi-hole/FTL/security/advisories/GHSA-pj9m-9623-2g75
- https://github.com/pi-hole/pi-hole/blob/v6.5/gravity.sh#L466-L475
- https://github.com/pi-hole/pi-hole/commit/63a1e2f31fea48f8fc3b21fdf98f44390fbba9a7
- https://github.com/pi-hole/pi-hole/releases/tag/v6.6
- https://github.com/pi-hole/pi-hole/security/advisories/GHSA-cq9w-mv93-mxh7
- https://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
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1458018.2HighRemote attackers can leak up to 64 KB of heap memory and crash the service. No authentication is required to trigger this via a crafted mux channel closure.
- CVE-2026-1457967.8HighAttackers can execute arbitrary Python code with the privileges of the user running the application. This requires a user to open a malicious netlist file containing a crafted component value.
- CVE-2026-1456698.1HighAuthenticated users can read, modify, or delete any business data via the online form API. This requires an active user account on the platform.
- CVE-2026-1456497.4HighUnauthenticated attackers can brute force 6-digit SMS codes to reset passwords and hijack accounts. Attackers need a target's username and phone number to exploit the password reset flow.
- CVE-2026-1456047.1HighAuthenticated attackers can access or modify files and task history of other agents within the same workspace. This requires a valid agent API key.
- CVE-2026-1441807.1HighRemote attackers can execute arbitrary scripts in a user's browser session. This requires a user to click a malicious link while authenticated to the WordPress site.