CVE-2026-70402GHSA-pq8x-xpgp-rvmh
Gitea local code execution through writable Git hooks
Gitea Gitea
CVSS
5.8MediumExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.19%Chance of exploitation activity in the next 30 days, higher than 8% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
- 1.27.3code.gitea.io/gitea, goGitHub
go get code.gitea.io/gitea@v1.27.3
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 2
- Giteaaffected: all versions through 1.27.2CVE List
- code.gitea.io/gitea, go<= 1.27.2GitHub
References 5
- github.com/go-gitea/gitea/pull/39008Fixvia CVE List
- github.com/go-gitea/gitea/pull/39016Fixvia CVE List
- github.com/go-gitea/gitea/releases/tag/v1.27.3Fixvia CVE List
- github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmhAdvisoryvia CVE List
- blog.gitea.com/release-of-1.27.3/Referencevia CVE List