{"id":"CVE-2026-70402","title":"Gitea creates server-side Git hook directories and scripts with mode 0777 and relies on the process umask to restrict access","summary":"Gitea creates server-side Git hook directories and scripts with mode 0777 and relies on the process umask to restrict access. With a permissive umask such as 0000 or 0002, another local user who can reach the repository storage may modif…","severity":"medium","cvss":5.8,"cvssVector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","cwe":["CWE-732"],"published":"2026-10-14","updated":"2026-10-14","sourceUpdated":"2026-10-14T16:17:51.930","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-70402","references":[{"url":"https://blog.gitea.com/release-of-1.27.3/","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/pull/39008","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/pull/39016","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.3","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"}],"tags":["nvd"],"ingestedAt":"2026-10-14T15:36:14.027Z","slug":"CVE-2026-70402","body":"## Overview\n\nGitea creates server-side Git hook directories and scripts with mode 0777 and relies on the process umask to restrict access. With a permissive umask such as 0000 or 0002, another local user who can reach the repository storage may modify a hook or add an executable to a writable hook directory. A later Git operation can execute that file as the Gitea service account.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":32,"depthScoreParts":{"impact":31.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[{"seq":220354,"id":"CVE-2026-70402","ts":1791996231379,"field":"cvss","old":null,"new":"5.8"},{"seq":220353,"id":"CVE-2026-70402","ts":1791996231379,"field":"severity","old":"none","new":"medium"}]}