{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-70402","id":"CVE-2026-70402","title":"Gitea local code execution through writable Git hooks","description":"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.","descriptionLong":"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.","published":"2026-10-14T14:36:46.774Z","updated":"2026-10-28T02:30:53.761217577Z","reserved":"2026-08-13T16:50:59.184Z","status":"Deferred","rejected":false,"assigner":"Gitea","metric":{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","rating":"medium","source":"OSV"}],"rating":"medium","products":["Gitea"],"affectedProducts":[{"vendor":"Gitea","product":"Gitea","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"1.27.2","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-732"],"aliases":["GHSA-pq8x-xpgp-rvmh"],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh","tags":["vendor-advisory","advisory"]},{"url":"https://blog.gitea.com/release-of-1.27.3/","tags":["release-notes","advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/39008","tags":["patch","fix"]},{"url":"https://github.com/go-gitea/gitea/pull/39016","tags":["patch","fix"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.3","tags":["release-notes","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70402.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70402","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00189,"epssPercentile":0.08703,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-70402","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70402","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-70402","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-70402","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}