CVE-2026-70402
5.8medium
Gitea local code execution through writable Git hooks
- Severity
- 5.8medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.12% (higher than 1% of CVEs)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| code.gitea.io/gitea | up to 1.27.2 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-70402 changed 2026-10-14 | CVE Terms of Use |
| NVD | CVE-2026-70402 changed 2026-10-14 | Public domain |