{"id":"CVE-2026-70402","revision":"8b213977c8364239a01597cdda9a24aa","records":[{"revision":"8b213977c8364239a01597cdda9a24aa","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-70402","aliases":[],"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.","state":0,"publishedAt":"2026-10-14T14:36:46.774+00:00","modifiedAt":"2026-10-14T15:03:17.928+00:00","affected":[{"ecosystem":"Vendor product","name":"code.gitea.io/gitea","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Gitea\",\n                    \"product\": \"Gitea\",\n                    \"packageName\": \"code.gitea.io/gitea\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"lessThanOrEqual\": \"1.27.2\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh","https://blog.gitea.com/release-of-1.27.3/","https://github.com/go-gitea/gitea/pull/39008","https://github.com/go-gitea/gitea/pull/39016","https://github.com/go-gitea/gitea/releases/tag/v1.27.3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-70402","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-70402","identifiers":["CVE-2026-70402"]},"retained":false,"historicalAffected":[]}],"coverage":[]}