Medium severity · published Oct 14, 2026
CVE-2026-70402
Gitea local code execution through writable Git hooks
5.8
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
Attack vector
Local
Complexity
High
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
High
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 9% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GI
Gitea · Gitea
through 1.27.2 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-70402
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-70402
vendor-advisory
https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh
release-notes
https://blog.gitea.com/release-of-1.27.3/
patch
https://github.com/go-gitea/gitea/pull/39008
patch
https://github.com/go-gitea/gitea/pull/39016
release-notes
https://github.com/go-gitea/gitea/releases/tag/v1.27.3
More from Gitea
9.8
CVE-2026-60004
Gitea Code Injection Vulnerability
9.8
CVE-2026-59774
Gitea Org-mode file disclosure and code execution
9.8
CVE-2026-73278
Gitea WebAuthn bypass during OAuth and OIDC sign-in
9.8
CVE-2026-94205
Gitea fork workflow approval bypass through maintainer-triggered events
9.8
CVE-2022-42968
Gitea before 1.17.3 does not sanitize and escape refs in the git backend
