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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Gitea | Gitea | ≤ 1.27.2 | — |
Advisories 1
- WID-SEC-2026-3079 Gitea: Mehrere Schwachstellen ermöglichen Ausführen von beliebigem Programmcode BSI CERT-Bund (WID) · Oct 14, 2026
References
- GitHub Security Advisory GHSA-pq8x-xpgp-rvmh vendor-advisory
- Gitea 1.27.3 release announcement release-notes
- Fix: go-gitea/gitea pull request #39008 patch
- Fix: go-gitea/gitea pull request #39016 patch
- go-gitea/gitea v1.27.3 release release-notes