CVE-2026-145797

7.2High

Published Dec 6, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.2CVSS

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.

remediation — bash
$ pihole -up

AI-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

Source: nvd.nist.gov/vuln/detail/CVE-2026-145797

More fully triaged vulnerabilities you may want to check next.