{"id":"CVE-2026-119336","state":"PUBLISHED","title":"Pi-hole: arbitrary root file clobber / chmod / disclosure via updatecheck.sh cron following /etc/pihole/versions symlink","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.","publishedAt":"2026-10-30T20:05:40.100Z","updatedAt":"2026-10-30T22:14:23.468Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["pi-hole pi-hole"],"affected":[{"vendor":"pi-hole","product":"pi-hole","versions":[{"version":">= 6.4.2, < 6.5","status":"affected"}]}],"references":["https://github.com/pi-hole/pi-hole/security/advisories/GHSA-xch2-4qxw-g5vj","https://github.com/pi-hole/pi-hole/pull/6719","https://github.com/pi-hole/pi-hole/commit/85de82dd2b63bf71ecb936177dfb82421d9d2f25","https://github.com/pi-hole/pi-hole/commit/c1062f43b0de1876321bafac58fba862406366cb","https://github.com/pi-hole/pi-hole/commit/e05dc3f139206fd8d0e4a052dceefb9056533517","https://github.com/pi-hole/pi-hole/releases/tag/v6.5"],"weaknesses":["CWE-59","CWE-61"],"ingestedAt":"2026-10-30T22:16:06.501Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119336.json","commit":"226652b7321cd45ef01add6f464a8114b52515e5","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119336","state":"PUBLISHED","datePublished":"2026-10-30T20:05:40.100Z","dateUpdated":"2026-10-30T22:14:23.468Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-29T20:44:30.286Z"},"containers":{"cna":{"title":"Pi-hole: arbitrary root file clobber / chmod / disclosure via updatecheck.sh cron following /etc/pihole/versions symlink","descriptions":[{"lang":"en","value":"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":[{"vendor":"pi-hole","product":"pi-hole","versions":[{"version":">= 6.4.2, < 6.5","status":"affected"}]}],"references":[{"url":"https://github.com/pi-hole/pi-hole/security/advisories/GHSA-xch2-4qxw-g5vj","name":"https://github.com/pi-hole/pi-hole/security/advisories/GHSA-xch2-4qxw-g5vj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pi-hole/pi-hole/pull/6719","name":"https://github.com/pi-hole/pi-hole/pull/6719","tags":["x_refsource_MISC"]},{"url":"https://github.com/pi-hole/pi-hole/commit/85de82dd2b63bf71ecb936177dfb82421d9d2f25","name":"https://github.com/pi-hole/pi-hole/commit/85de82dd2b63bf71ecb936177dfb82421d9d2f25","tags":["x_refsource_MISC"]},{"url":"https://github.com/pi-hole/pi-hole/commit/c1062f43b0de1876321bafac58fba862406366cb","name":"https://github.com/pi-hole/pi-hole/commit/c1062f43b0de1876321bafac58fba862406366cb","tags":["x_refsource_MISC"]},{"url":"https://github.com/pi-hole/pi-hole/commit/e05dc3f139206fd8d0e4a052dceefb9056533517","name":"https://github.com/pi-hole/pi-hole/commit/e05dc3f139206fd8d0e4a052dceefb9056533517","tags":["x_refsource_MISC"]},{"url":"https://github.com/pi-hole/pi-hole/releases/tag/v6.5","name":"https://github.com/pi-hole/pi-hole/releases/tag/v6.5","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","lang":"en","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-61","lang":"en","description":"CWE-61: UNIX Symbolic Link (Symlink) Following","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-30T20:05:40.100Z"},"source":{"advisory":"GHSA-xch2-4qxw-g5vj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-30T21:21:13.368597Z","id":"CVE-2026-119336","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-30T22:14:23.468Z"}}]}}}