Original description
Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. From 6.4.2 until 6.5, the root-run advanced/Scripts/updatecheck.sh cron job applies truncate -s 0 and chmod 644 to /etc/pihole/versions while following symbolic links in a directory owned by the pihole user. An attacker executing as pihole can replace that path with a symlink so the scheduled root operations truncate or create an arbitrary root-owned file, or race the operations so chmod makes a sensitive target world-readable without truncating it. This issue is fixed in version 6.5.
Affected software
- Pi-hole * repository or package match
Details
- Published
- 2026-10-31
- Last modified
- 2026-10-31
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-59, CWE-61
- EPSS (30-day exploit probability)
- 0.25% (percentile 16)
References
- cve.org/CVE-2026-119336
- nvd.nist.gov/vuln/detail/CVE-2026-119336
- github.com/pi-hole/pi-hole/security/advisories/GHSA-xch2-4qxw-g5vj
- github.com/pi-hole/pi-hole/pull/6719
- github.com/pi-hole/pi-hole/commit/85de82dd2b63bf71ecb936177dfb82421d9d2f25
- github.com/pi-hole/pi-hole/commit/c1062f43b0de1876321bafac58fba862406366cb
- github.com/pi-hole/pi-hole/commit/e05dc3f139206fd8d0e4a052dceefb9056533517
- github.com/pi-hole/pi-hole/releases/tag/v6.5
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.