Gitea · Gitea · published 2026-10-14
CVE-2026-70402Gitea local code execution through writable Git hooks
Routine No exploitation evidence; EPSS 0.2%.
CVE-2026-70402 is not known to be exploited in the wild. EPSS estimates a 0.2% chance of exploitation in the next 30 days, higher than 8% of all CVEs. This Gitea vulnerability: CVSS 5.8 (v3.1). Fixed upstream in Gitea 1.27.3. Routine: patch when convenient.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
Fixed upstream in Gitea 1.27.3.
Patch events
DevOpsGitea
Gitea security release: 1.27.3
Upgrade to
1.27.3Why: CVE-2026-73504: Public proof-of-concept exists (SSVC exploitation: poc).
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | No | CISA KEV |
| Ransomware use | — | CISA KEV |
| EPSS (30-day exploitation probability) | 0.2% (9th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 5.8 (v3.1)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L | CNA / CISA ADP |
| SSVC exploitation | none | CISA Vulnrichment |
| SSVC automatable | No | CISA Vulnrichment |
| SSVC technical impact | partial | CISA Vulnrichment |
Affected versions (from the CVE record)#
- Gitea Gitea
0through1.27.2(affected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.