{"id":"CVE-2026-70402","published":"2026-10-14T14:36:46Z","modified":"2026-10-14T15:03:17Z","title":"Gitea local code execution through writable Git hooks","vendor":"Gitea","product":"Gitea","tier":"tail","description":{"text":"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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00189,"percentile":0.0877,"provenance":"source"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh","tags":["vendor-advisory"]},{"url":"https://blog.gitea.com/release-of-1.27.3/","tags":["release-notes"]},{"url":"https://github.com/go-gitea/gitea/pull/39008","tags":["patch"]},{"url":"https://github.com/go-gitea/gitea/pull/39016","tags":["patch"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.3","tags":["release-notes"]}],"priority":{"score":5.8,"factors":[{"name":"EPSS percentile","points":1.75},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"gitea","affectedVersions":[{"vendor":"Gitea","product":"Gitea","versions":["<= 1.27.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-14T14:55:28.839489Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-101095","exploited":false,"provenance":"source"}}