CVE-2026-70402
Gitea local code execution through writable Git hooks
- State
- Published
- Severity
- 5.8 Medium
- Published
- Oct 14, 2026
- Updated
- Oct 14, 2026
- Reserved
- Aug 13, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 5.8 Medium | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L | CISA-ADP |
Weaknesses
- CWE-732 Incorrect Permission Assignment for Critical Resource
Affected Products
| Product | Versions |
|---|---|
GiteaGitea |
|
References
- GitHub Security Advisory GHSA-pq8x-xpgp-rvmhvendor-advisory
- Gitea 1.27.3 release announcementrelease-notes
- Fix: go-gitea/gitea pull request #39008patch
- Fix: go-gitea/gitea pull request #39016patch
- go-gitea/gitea v1.27.3 releaserelease-notes
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.