{"id":"CVE-2026-119336","summary":"Pi-hole: arbitrary root file clobber / chmod / disclosure via updatecheck.sh cron following /etc/pihole/versions symlink","details":"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.","aliases":["GHSA-xch2-4qxw-g5vj"],"modified":"2026-11-04T02:30:31.755021948Z","published":"2026-10-30T20:05:40.100Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119336.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-59","CWE-61"]},"references":[{"type":"WEB","url":"https://github.com/pi-hole/pi-hole/releases/tag/v6.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119336.json"},{"type":"ADVISORY","url":"https://github.com/pi-hole/pi-hole/security/advisories/GHSA-xch2-4qxw-g5vj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119336"},{"type":"FIX","url":"https://github.com/pi-hole/pi-hole/commit/85de82dd2b63bf71ecb936177dfb82421d9d2f25"},{"type":"FIX","url":"https://github.com/pi-hole/pi-hole/commit/c1062f43b0de1876321bafac58fba862406366cb"},{"type":"FIX","url":"https://github.com/pi-hole/pi-hole/commit/e05dc3f139206fd8d0e4a052dceefb9056533517"},{"type":"FIX","url":"https://github.com/pi-hole/pi-hole/pull/6719"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pi-hole/pi-hole","events":[{"introduced":"3413768c90d9f5289f6e29c7d1e0fe3451e6bbd6"},{"fixed":"f503a65d3a07cb71fd931389f1d3babf718249aa"},{"fixed":"85de82dd2b63bf71ecb936177dfb82421d9d2f25"},{"fixed":"c1062f43b0de1876321bafac58fba862406366cb"},{"fixed":"e05dc3f139206fd8d0e4a052dceefb9056533517"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"6.4.2"},{"fixed":"6.5"}]},{"range":[{"fixed":"85de82dd2b63bf71ecb936177dfb82421d9d2f25"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"c1062f43b0de1876321bafac58fba862406366cb"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"e05dc3f139206fd8d0e4a052dceefb9056533517"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"f503a65d3a07cb71fd931389f1d3babf718249aa"}],"source":"REFERENCES_TAG","original_tag":"v6.5"}]}}],"versions":["v6.4.3","v6.4.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119336.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}