{"id":"CVE-2026-70402","aliases":["CVE-2026-70402"],"related":[],"kind":"vulnerability","state":"published","title":"Gitea local code execution through writable Git hooks","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-14T14:36:46.774Z","modified":"2026-10-14T16:17:51.930Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-732"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.27.2","status":"affected"}],"vendor":"Gitea","product":"Gitea","package":"code.gitea.io/gitea","source":"cvelist"}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://blog.gitea.com/release-of-1.27.3/","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/39008","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/39016","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.3","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":["https://github.com/What-canIsay","https://github.com/bircni","https://github.com/silverwind"],"assigner":"Gitea","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-14T14:55:28.839Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-70402","url":"https://www.cve.org/CVERecord?id=CVE-2026-70402","licence":"CVE Terms of Use","modified":"2026-10-14T15:03:17.928Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-70402","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70402","licence":"Public domain","modified":"2026-10-14T16:17:51.930Z"}],"updatedAt":"2026-11-25T22:59:44.673Z","epss":{"score":0.00124,"percentile":0.01019,"date":"2026-11-30T12:00:22.000Z"}}