Back
CVE-2026-70402
Gitea local code execution through writable Git hooks
Medium5.8EPSS 0.19%
- Published
- Updated
- Reserved
- Assigned by
- Gitea
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium5.8 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L |
| NVDNVD · Deferred | 3.1 | Medium5.8 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L |
- EPSS (exploitation in 30 days)
- 0.19% · top 91% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.8.
Weakness
Affected products
References (5)
- GitHub Security Advisory GHSA-pq8x-xpgp-rvmh (opens in a new tab)vendor-advisory
- Gitea 1.27.3 release announcement (opens in a new tab)release-notes
- Fix: go-gitea/gitea pull request #39008 (opens in a new tab)patch
- Fix: go-gitea/gitea pull request #39016 (opens in a new tab)patch
- go-gitea/gitea v1.27.3 release (opens in a new tab)release-notes
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2026-70402)Record last updated .