CVE-2026-70402
Gitea local code execution through writable Git hooks
CVSS Score
5.8
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-732 |
| Vendor | gitea |
| Product | gitea |
| Published | Oct 14, 2026 |
| Last Updated | Oct 14, 2026 |
Stay Ahead of the Next One
Get instant alerts for gitea gitea
Be the first to know when new medium vulnerabilities affecting gitea gitea are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
Gitea / Gitea
0 โค 1.27.2
References
github.com: https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh blog.gitea.com: https://blog.gitea.com/release-of-1.27.3/ github.com: https://github.com/go-gitea/gitea/pull/39008 github.com: https://github.com/go-gitea/gitea/pull/39016 github.com: https://github.com/go-gitea/gitea/releases/tag/v1.27.3
Credits
https://github.com/What-canIsay https://github.com/bircni https://github.com/silverwind