CVE-2026-70402 Gitea local code execution through writable Git hooks
MediumCVSS 5.8
EPSS 0.12%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Gitea | <= 1.27.2 | after 1.27.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Gitea | <= 1.27.2 | No fix listed |
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
- ENISA EUVD EUVD-2026-101095 third-party-advisory